@flock/wirespec 0.9.2 → 0.9.4
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/arrow-arrow-atomic.js +15 -15
- package/arrow-arrow-continuations.js +3 -3
- package/arrow-arrow-core.js +87 -87
- package/clikt-clikt.js +1360 -1360
- package/colormath-root-colormath.js +403 -403
- package/kotlin-kotlin-stdlib.js +1616 -1477
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +9251 -6889
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin-rgxgen.js +1867 -1867
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +2293 -1468
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1882 -1207
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/markdown.js +1982 -1982
- package/mordant-mordant.js +1771 -1771
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +2125 -1935
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +714 -402
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +1994 -777
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-generator.js +59 -59
- package/wirespec-src-generator.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +101 -101
- package/wirespec-src-plugin-cli.js +187 -187
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +42 -4
- package/wirespec-src-plugin-npm.js +227 -17
- package/wirespec-src-plugin-npm.js.map +1 -1
|
@@ -30,33 +30,33 @@
|
|
|
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.$_$.
|
|
33
|
+
var Unit_getInstance = kotlin_kotlin.$_$.g4;
|
|
34
34
|
var subcommands = kotlin_clikt_clikt.$_$.c;
|
|
35
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
36
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
37
|
-
var VOID = kotlin_kotlin.$_$.
|
|
38
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
35
|
+
var protoOf = kotlin_kotlin.$_$.oa;
|
|
36
|
+
var objectMeta = kotlin_kotlin.$_$.na;
|
|
37
|
+
var VOID = kotlin_kotlin.$_$.vf;
|
|
38
|
+
var setMetadataFor = kotlin_kotlin.$_$.pa;
|
|
39
39
|
var NoOpCliktCommand = kotlin_clikt_clikt.$_$.b;
|
|
40
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
40
|
+
var classMeta = kotlin_kotlin.$_$.j9;
|
|
41
41
|
var option = kotlin_clikt_clikt.$_$.h;
|
|
42
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
45
|
var Compile_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.y;
|
|
46
46
|
var Companion_getInstance_0 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.z;
|
|
47
|
-
var toSet = kotlin_kotlin.$_$.
|
|
47
|
+
var toSet = kotlin_kotlin.$_$.l8;
|
|
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.$_$.
|
|
53
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
52
|
+
var mapCapacity = kotlin_kotlin.$_$.e7;
|
|
53
|
+
var coerceAtLeast = kotlin_kotlin.$_$.za;
|
|
54
54
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
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.$_$.
|
|
57
|
+
var listOf = kotlin_kotlin.$_$.c7;
|
|
58
58
|
var Convert = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.g;
|
|
59
|
-
var setOf = kotlin_kotlin.$_$.
|
|
59
|
+
var setOf = kotlin_kotlin.$_$.q7;
|
|
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;
|
|
@@ -65,33 +65,33 @@
|
|
|
65
65
|
var FullDirPath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.d;
|
|
66
66
|
var Console_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.v;
|
|
67
67
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
68
|
-
var Enum = kotlin_kotlin.$_$.
|
|
69
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
70
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
71
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
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
72
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
73
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
73
|
+
var copyToArray = kotlin_kotlin.$_$.t5;
|
|
74
74
|
var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
|
|
75
|
-
var toString = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
81
|
-
var Companion_getInstance_2 = kotlin_community_flock_wirespec_converter_openapi.$_$.
|
|
82
|
-
var Companion_getInstance_3 = kotlin_community_flock_wirespec_converter_openapi.$_$.
|
|
83
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
84
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
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
85
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j;
|
|
86
|
-
var to = kotlin_kotlin.$_$.
|
|
86
|
+
var to = kotlin_kotlin.$_$.uf;
|
|
87
87
|
var _FileName___get_value__impl__3u4cz6 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.r;
|
|
88
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
89
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
90
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
91
|
-
var first = kotlin_kotlin.$_$.
|
|
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;
|
|
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.$_$.
|
|
94
|
+
var print = kotlin_kotlin.$_$.z8;
|
|
95
95
|
var PackageName = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.i;
|
|
96
96
|
var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
97
97
|
var JavaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.c;
|
|
@@ -103,41 +103,41 @@
|
|
|
103
103
|
var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
|
|
104
104
|
var FileExtension_TypeScript_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.n;
|
|
105
105
|
var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.g;
|
|
106
|
-
var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
106
|
+
var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.u1;
|
|
107
107
|
var compile = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
108
108
|
var Left = kotlin_io_arrow_kt_arrow_core.$_$.c;
|
|
109
|
-
var Companion_getInstance_4 = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
109
|
+
var Companion_getInstance_4 = kotlin_community_flock_wirespec_compiler_core.$_$.s1;
|
|
110
110
|
var Right = kotlin_io_arrow_kt_arrow_core.$_$.d;
|
|
111
|
-
var println = kotlin_kotlin.$_$.
|
|
111
|
+
var println = kotlin_kotlin.$_$.x8;
|
|
112
112
|
var Output = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.h;
|
|
113
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
113
|
+
var ensureNotNull = kotlin_kotlin.$_$.lf;
|
|
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.$_$.
|
|
117
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
118
|
-
var split = kotlin_kotlin.$_$.
|
|
119
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
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;
|
|
120
120
|
var FileExtension_Json_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.k;
|
|
121
121
|
var parse = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
|
|
122
122
|
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
|
|
123
123
|
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.h;
|
|
124
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
125
|
-
var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.
|
|
126
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
127
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
128
|
-
var iterator = kotlin_kotlin.$_$.
|
|
129
|
-
var asSequence = kotlin_kotlin.$_$.
|
|
130
|
-
var map = kotlin_kotlin.$_$.
|
|
131
|
-
var filter = kotlin_kotlin.$_$.
|
|
132
|
-
var toSet_0 = kotlin_kotlin.$_$.
|
|
133
|
-
var split_0 = kotlin_kotlin.$_$.
|
|
134
|
-
var Companion_getInstance_5 = kotlin_kotlin.$_$.
|
|
135
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
136
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
137
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
138
|
-
var isObject = kotlin_kotlin.$_$.
|
|
139
|
-
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.
|
|
140
|
-
var isArray = kotlin_kotlin.$_$.
|
|
124
|
+
var isInterface = kotlin_kotlin.$_$.ba;
|
|
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;
|
|
141
141
|
//endregion
|
|
142
142
|
//region block: pre-declaration
|
|
143
143
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
//endregion
|
|
158
158
|
function WirespecCli$main$ref($boundThis) {
|
|
159
159
|
var l = function (p0) {
|
|
160
|
-
$boundThis.
|
|
160
|
+
$boundThis.e3q(p0);
|
|
161
161
|
return Unit_getInstance();
|
|
162
162
|
};
|
|
163
163
|
l.callableName = 'main';
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
function Companion() {
|
|
167
167
|
Companion_instance = this;
|
|
168
168
|
}
|
|
169
|
-
protoOf(Companion).
|
|
169
|
+
protoOf(Companion).e42 = function (compile, convert) {
|
|
170
170
|
return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile), new Convert_0(convert)]));
|
|
171
171
|
};
|
|
172
172
|
var Companion_instance;
|
|
@@ -180,28 +180,28 @@
|
|
|
180
180
|
NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
|
|
181
181
|
}
|
|
182
182
|
function _get_languages__ojonze($this) {
|
|
183
|
-
return $this.
|
|
183
|
+
return $this.e43_1.g3z($this, languages$factory_0());
|
|
184
184
|
}
|
|
185
185
|
function Compile_0(block) {
|
|
186
186
|
CommonOptions.call(this);
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
187
|
+
this.d43_1 = block;
|
|
188
|
+
this.e43_1 = multiple(choice(option(this, Options_Language_getInstance().h43_1.slice(), 'Language'), Companion_getInstance().j2b()), VOID, true).i40(this, languages$factory());
|
|
189
189
|
}
|
|
190
|
-
protoOf(Compile_0).
|
|
190
|
+
protoOf(Compile_0).f3q = function () {
|
|
191
191
|
// Inline function 'kotlin.let' call
|
|
192
|
-
var tmp0_let = new CompilerArguments(Compile_getInstance(), this.
|
|
192
|
+
var tmp0_let = new CompilerArguments(Compile_getInstance(), this.h44(this.g44()), Companion_getInstance_0().k2b(this.i44()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.j44()), this.k44(), this.l44(), this.m44());
|
|
193
193
|
// Inline function 'kotlin.contracts.contract' call
|
|
194
|
-
this.
|
|
194
|
+
this.d43_1(tmp0_let);
|
|
195
195
|
};
|
|
196
196
|
function _get_format__qlarck($this) {
|
|
197
|
-
return $this.
|
|
197
|
+
return $this.m45_1.g3z($this, format$factory_0());
|
|
198
198
|
}
|
|
199
199
|
function _get_languages__ojonze_0($this) {
|
|
200
|
-
return $this.
|
|
200
|
+
return $this.n45_1.g3z($this, languages$factory_2());
|
|
201
201
|
}
|
|
202
202
|
function Convert_0(block) {
|
|
203
203
|
CommonOptions.call(this);
|
|
204
|
-
this.
|
|
204
|
+
this.l45_1 = block;
|
|
205
205
|
var tmp = this;
|
|
206
206
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
207
207
|
var tmp0_enum = argument(this, VOID, 'Input format');
|
|
@@ -219,24 +219,24 @@
|
|
|
219
219
|
var tmp$ret$2;
|
|
220
220
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum.<anonymous>' call
|
|
221
221
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum.<anonymous>' call
|
|
222
|
-
tmp$ret$2 = element.
|
|
222
|
+
tmp$ret$2 = element.c9_1;
|
|
223
223
|
tmp0_associateByTo.l2(tmp$ret$2, element);
|
|
224
224
|
}
|
|
225
|
-
tmp.
|
|
226
|
-
this.
|
|
225
|
+
tmp.m45_1 = choice_0(tmp0_enum, tmp0_associateByTo, true).m3y(this, format$factory());
|
|
226
|
+
this.n45_1 = multiple(choice(option(this, Options_Language_getInstance().h43_1.slice(), 'Language'), Companion_getInstance().j2b(), VOID, true), listOf(Language_Wirespec_getInstance())).i40(this, languages$factory_1());
|
|
227
227
|
}
|
|
228
|
-
protoOf(Convert_0).
|
|
229
|
-
if (this.
|
|
228
|
+
protoOf(Convert_0).f3q = function () {
|
|
229
|
+
if (this.g44() == null)
|
|
230
230
|
null;
|
|
231
231
|
else {
|
|
232
232
|
// Inline function 'kotlin.let' call
|
|
233
233
|
// Inline function 'kotlin.contracts.contract' call
|
|
234
|
-
this.
|
|
234
|
+
this.y3p('To convert, please specify a file', VOID, true);
|
|
235
235
|
}
|
|
236
236
|
// Inline function 'kotlin.let' call
|
|
237
237
|
var tmp = new Convert(_get_format__qlarck(this));
|
|
238
|
-
var tmp_0 = this.
|
|
239
|
-
var tmp_1 = Companion_getInstance_0().
|
|
238
|
+
var tmp_0 = this.h44(null);
|
|
239
|
+
var tmp_1 = Companion_getInstance_0().k2b(this.i44());
|
|
240
240
|
var tmp$ret$2;
|
|
241
241
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
242
242
|
var tmp0_ifEmpty = toSet(_get_languages__ojonze_0(this));
|
|
@@ -248,42 +248,42 @@
|
|
|
248
248
|
tmp_2 = tmp0_ifEmpty;
|
|
249
249
|
}
|
|
250
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.
|
|
251
|
+
var tmp1_let = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.j44()), this.k44(), this.l44(), this.m44());
|
|
252
252
|
// Inline function 'kotlin.contracts.contract' call
|
|
253
|
-
this.
|
|
253
|
+
this.l45_1(tmp1_let);
|
|
254
254
|
};
|
|
255
255
|
function _get_inputFile__x1bqj($this) {
|
|
256
|
-
return $this.
|
|
256
|
+
return $this.z43_1.g3z($this, inputFile$factory_0());
|
|
257
257
|
}
|
|
258
258
|
function CommonOptions() {
|
|
259
259
|
CliktCommand.call(this);
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
263
|
-
this.
|
|
264
|
-
this.
|
|
265
|
-
this.
|
|
266
|
-
this.
|
|
267
|
-
}
|
|
268
|
-
protoOf(CommonOptions).
|
|
269
|
-
return this.
|
|
260
|
+
this.z43_1 = option(this, Options_InputFile_getInstance().h43_1.slice(), 'Input file').i40(this, inputFile$factory());
|
|
261
|
+
this.a44_1 = option(this, Options_InputDir_getInstance().h43_1.slice(), 'Input directory').i40(this, inputDir$factory());
|
|
262
|
+
this.b44_1 = option(this, Options_OutputDir_getInstance().h43_1.slice(), 'Output directory').i40(this, outputDir$factory());
|
|
263
|
+
this.c44_1 = default_0(option(this, Options_PackageName_getInstance().h43_1.slice(), 'Package name'), get_DEFAULT_PACKAGE_STRING()).i40(this, packageName$factory());
|
|
264
|
+
this.d44_1 = flag(option(this, Options_Shared_getInstance().h43_1.slice(), 'Generate shared wirespec code'), [], false).i40(this, shared$factory());
|
|
265
|
+
this.e44_1 = flag(option(this, Options_Strict_getInstance().h43_1.slice(), 'Strict mode'), []).i40(this, strict$factory());
|
|
266
|
+
this.f44_1 = flag(option(this, Options_Debug_getInstance().h43_1.slice(), 'Debug mode'), []).i40(this, debug$factory());
|
|
267
|
+
}
|
|
268
|
+
protoOf(CommonOptions).g44 = function () {
|
|
269
|
+
return this.a44_1.g3z(this, inputDir$factory_0());
|
|
270
270
|
};
|
|
271
|
-
protoOf(CommonOptions).
|
|
272
|
-
return this.
|
|
271
|
+
protoOf(CommonOptions).i44 = function () {
|
|
272
|
+
return this.b44_1.g3z(this, outputDir$factory_0());
|
|
273
273
|
};
|
|
274
|
-
protoOf(CommonOptions).
|
|
275
|
-
return this.
|
|
274
|
+
protoOf(CommonOptions).j44 = function () {
|
|
275
|
+
return this.c44_1.g3z(this, packageName$factory_0());
|
|
276
276
|
};
|
|
277
|
-
protoOf(CommonOptions).
|
|
278
|
-
return this.
|
|
277
|
+
protoOf(CommonOptions).k44 = function () {
|
|
278
|
+
return this.d44_1.g3z(this, shared$factory_0());
|
|
279
279
|
};
|
|
280
|
-
protoOf(CommonOptions).
|
|
281
|
-
return this.
|
|
280
|
+
protoOf(CommonOptions).l44 = function () {
|
|
281
|
+
return this.e44_1.g3z(this, strict$factory_0());
|
|
282
282
|
};
|
|
283
|
-
protoOf(CommonOptions).
|
|
284
|
-
return this.
|
|
283
|
+
protoOf(CommonOptions).m44 = function () {
|
|
284
|
+
return this.f44_1.g3z(this, debug$factory_0());
|
|
285
285
|
};
|
|
286
|
-
protoOf(CommonOptions).
|
|
286
|
+
protoOf(CommonOptions).h44 = function (inputDir) {
|
|
287
287
|
var tmp;
|
|
288
288
|
if (!(inputDir == null) ? !(_get_inputFile__x1bqj(this) == null) : false) {
|
|
289
289
|
throw IllegalStateException_init_$Create$('Choose either a file or a directory. Not Both.');
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
} else {
|
|
296
296
|
// Inline function 'kotlin.let' call
|
|
297
297
|
// Inline function 'kotlin.contracts.contract' call
|
|
298
|
-
tmp_0 = Companion_getInstance_1().
|
|
298
|
+
tmp_0 = Companion_getInstance_1().y2a(tmp0_safe_receiver);
|
|
299
299
|
}
|
|
300
300
|
var tmp2_elvis_lhs = tmp_0;
|
|
301
301
|
var tmp_1;
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
}
|
|
342
342
|
function Options(name, ordinal, flags) {
|
|
343
343
|
Enum.call(this, name, ordinal);
|
|
344
|
-
this.
|
|
344
|
+
this.h43_1 = flags;
|
|
345
345
|
}
|
|
346
346
|
function Options_InputDir_getInstance() {
|
|
347
347
|
Options_initEntries();
|
|
@@ -412,32 +412,32 @@
|
|
|
412
412
|
}
|
|
413
413
|
function inputDir$factory() {
|
|
414
414
|
return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
|
|
415
|
-
return receiver.
|
|
415
|
+
return receiver.g44();
|
|
416
416
|
}, null);
|
|
417
417
|
}
|
|
418
418
|
function outputDir$factory() {
|
|
419
419
|
return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
|
|
420
|
-
return receiver.
|
|
420
|
+
return receiver.i44();
|
|
421
421
|
}, null);
|
|
422
422
|
}
|
|
423
423
|
function packageName$factory() {
|
|
424
424
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
425
|
-
return receiver.
|
|
425
|
+
return receiver.j44();
|
|
426
426
|
}, null);
|
|
427
427
|
}
|
|
428
428
|
function shared$factory() {
|
|
429
429
|
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
|
|
430
|
-
return receiver.
|
|
430
|
+
return receiver.k44();
|
|
431
431
|
}, null);
|
|
432
432
|
}
|
|
433
433
|
function strict$factory() {
|
|
434
434
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
435
|
-
return receiver.
|
|
435
|
+
return receiver.l44();
|
|
436
436
|
}, null);
|
|
437
437
|
}
|
|
438
438
|
function debug$factory() {
|
|
439
439
|
return getPropertyCallableRef('debug', 1, KProperty1, function (receiver) {
|
|
440
|
-
return receiver.
|
|
440
|
+
return receiver.m44();
|
|
441
441
|
}, null);
|
|
442
442
|
}
|
|
443
443
|
function inputFile$factory_0() {
|
|
@@ -447,32 +447,32 @@
|
|
|
447
447
|
}
|
|
448
448
|
function inputDir$factory_0() {
|
|
449
449
|
return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) {
|
|
450
|
-
return receiver.
|
|
450
|
+
return receiver.g44();
|
|
451
451
|
}, null);
|
|
452
452
|
}
|
|
453
453
|
function outputDir$factory_0() {
|
|
454
454
|
return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
|
|
455
|
-
return receiver.
|
|
455
|
+
return receiver.i44();
|
|
456
456
|
}, null);
|
|
457
457
|
}
|
|
458
458
|
function packageName$factory_0() {
|
|
459
459
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
460
|
-
return receiver.
|
|
460
|
+
return receiver.j44();
|
|
461
461
|
}, null);
|
|
462
462
|
}
|
|
463
463
|
function shared$factory_0() {
|
|
464
464
|
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
|
|
465
|
-
return receiver.
|
|
465
|
+
return receiver.k44();
|
|
466
466
|
}, null);
|
|
467
467
|
}
|
|
468
468
|
function strict$factory_0() {
|
|
469
469
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
470
|
-
return receiver.
|
|
470
|
+
return receiver.l44();
|
|
471
471
|
}, null);
|
|
472
472
|
}
|
|
473
473
|
function debug$factory_0() {
|
|
474
474
|
return getPropertyCallableRef('debug', 1, KProperty1, function (receiver) {
|
|
475
|
-
return receiver.
|
|
475
|
+
return receiver.m44();
|
|
476
476
|
}, null);
|
|
477
477
|
}
|
|
478
478
|
function main(args) {
|
|
@@ -483,8 +483,8 @@
|
|
|
483
483
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
484
484
|
var tmp0_mapNotNullTo = ArrayList_init_$Create$();
|
|
485
485
|
// Inline function 'kotlin.collections.forEach' call
|
|
486
|
-
var inductionVariable = tmp0_mapNotNull.
|
|
487
|
-
var last = tmp0_mapNotNull.
|
|
486
|
+
var inductionVariable = tmp0_mapNotNull.v9_1;
|
|
487
|
+
var last = tmp0_mapNotNull.w9_1;
|
|
488
488
|
if (inductionVariable <= last)
|
|
489
489
|
do {
|
|
490
490
|
var element = inductionVariable;
|
|
@@ -504,27 +504,27 @@
|
|
|
504
504
|
var tmp = Companion_getInstance_6();
|
|
505
505
|
var tmp_0 = compile$ref();
|
|
506
506
|
// Inline function 'kotlin.contracts.contract' call
|
|
507
|
-
tmp.
|
|
507
|
+
tmp.e42(tmp_0, convert$ref())(tmp2_let);
|
|
508
508
|
}
|
|
509
509
|
function compile_0(arguments_0) {
|
|
510
|
-
var input = arguments_0.
|
|
511
|
-
var output = arguments_0.
|
|
512
|
-
var languages = arguments_0.
|
|
513
|
-
var packageName = arguments_0.
|
|
514
|
-
var logger = new Logger(arguments_0.
|
|
515
|
-
var operation = arguments_0.
|
|
510
|
+
var input = arguments_0.p2a_1;
|
|
511
|
+
var output = arguments_0.q2a_1;
|
|
512
|
+
var languages = arguments_0.r2a_1;
|
|
513
|
+
var packageName = arguments_0.s2a_1;
|
|
514
|
+
var logger = new Logger(arguments_0.v2a_1);
|
|
515
|
+
var operation = arguments_0.o2a_1;
|
|
516
516
|
if (operation instanceof Convert) {
|
|
517
517
|
var fullPath = input instanceof FullFilePath ? input : THROW_CCE();
|
|
518
518
|
var file = new JsonFile(fullPath);
|
|
519
|
-
var strict = arguments_0.
|
|
520
|
-
var format = operation.
|
|
519
|
+
var strict = arguments_0.u2a_1;
|
|
520
|
+
var format = operation.x2a_1;
|
|
521
521
|
var tmp;
|
|
522
|
-
switch (format.
|
|
522
|
+
switch (format.d9_1) {
|
|
523
523
|
case 0:
|
|
524
|
-
tmp = Companion_getInstance_2().
|
|
524
|
+
tmp = Companion_getInstance_2().n2b(file.x17(), !strict);
|
|
525
525
|
break;
|
|
526
526
|
case 1:
|
|
527
|
-
tmp = Companion_getInstance_3().
|
|
527
|
+
tmp = Companion_getInstance_3().n2b(file.x17(), !strict);
|
|
528
528
|
break;
|
|
529
529
|
default:
|
|
530
530
|
noWhenBranchMatchedException();
|
|
@@ -542,14 +542,14 @@
|
|
|
542
542
|
var item = tmp0_iterator.y();
|
|
543
543
|
var tmp$ret$7;
|
|
544
544
|
// Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
|
|
545
|
-
var emitter = item.
|
|
546
|
-
var file_0 = item.
|
|
547
|
-
var results = emitter.
|
|
545
|
+
var emitter = item.gd();
|
|
546
|
+
var file_0 = item.hd();
|
|
547
|
+
var results = emitter.c20(ast);
|
|
548
548
|
var tmp_0;
|
|
549
|
-
if (!emitter.
|
|
549
|
+
if (!emitter.b20_1) {
|
|
550
550
|
var tmp$ret$6;
|
|
551
551
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
552
|
-
var tmp0_replaceFirstChar = _FileName___get_value__impl__3u4cz6(fullPath.
|
|
552
|
+
var tmp0_replaceFirstChar = _FileName___get_value__impl__3u4cz6(fullPath.d2b_1);
|
|
553
553
|
var tmp_1;
|
|
554
554
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
555
555
|
if (charSequenceLength(tmp0_replaceFirstChar) > 0) {
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
tmp_1 = tmp0_replaceFirstChar;
|
|
568
568
|
}
|
|
569
569
|
tmp$ret$6 = tmp_1;
|
|
570
|
-
tmp_0 = to(listOf(new Emitted(tmp$ret$6, first(results).
|
|
570
|
+
tmp_0 = to(listOf(new Emitted(tmp$ret$6, first(results).p21_1)), file_0);
|
|
571
571
|
} else {
|
|
572
572
|
tmp_0 = to(results, file_0);
|
|
573
573
|
}
|
|
@@ -579,8 +579,8 @@
|
|
|
579
579
|
var tmp0_iterator_0 = tmp0_mapTo.v();
|
|
580
580
|
while (tmp0_iterator_0.w()) {
|
|
581
581
|
var item_0 = tmp0_iterator_0.y();
|
|
582
|
-
var results_0 = item_0.
|
|
583
|
-
var file_1 = item_0.
|
|
582
|
+
var results_0 = item_0.gd();
|
|
583
|
+
var file_1 = item_0.hd();
|
|
584
584
|
write(results_0, file_1);
|
|
585
585
|
tmp0_mapTo_0.s(Unit_getInstance());
|
|
586
586
|
}
|
|
@@ -591,19 +591,19 @@
|
|
|
591
591
|
} else {
|
|
592
592
|
if (input instanceof FullDirPath) {
|
|
593
593
|
// Inline function 'kotlin.collections.forEach' call
|
|
594
|
-
var tmp0_iterator_1 = (new Directory(input.
|
|
594
|
+
var tmp0_iterator_1 = (new Directory(input.i2b_1)).q45().v();
|
|
595
595
|
while (tmp0_iterator_1.w()) {
|
|
596
596
|
var element = tmp0_iterator_1.y();
|
|
597
597
|
// Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
|
|
598
|
-
wirespec(element, languages, packageName, out(element.
|
|
598
|
+
wirespec(element, languages, packageName, out(element.o45_1, packageName, output), logger);
|
|
599
599
|
}
|
|
600
600
|
} else {
|
|
601
601
|
if (input instanceof FullFilePath)
|
|
602
|
-
if (input.
|
|
602
|
+
if (input.e2b_1.equals(FileExtension_Wirespec_getInstance())) {
|
|
603
603
|
// Inline function 'kotlin.let' call
|
|
604
604
|
var tmp3_let = new WirespecFile(input);
|
|
605
605
|
// Inline function 'kotlin.contracts.contract' call
|
|
606
|
-
wirespec(tmp3_let, languages, packageName, out(tmp3_let.
|
|
606
|
+
wirespec(tmp3_let, languages, packageName, out(tmp3_let.o45_1, packageName, output), logger);
|
|
607
607
|
} else {
|
|
608
608
|
// Inline function 'kotlin.error' call
|
|
609
609
|
var tmp4_error = 'Path ' + input + ' is not a Wirespec file';
|
|
@@ -626,14 +626,14 @@
|
|
|
626
626
|
while (tmp0_iterator.w()) {
|
|
627
627
|
var element = tmp0_iterator.y();
|
|
628
628
|
// Inline function 'community.flock.wirespec.plugin.cli.write.<anonymous>' call
|
|
629
|
-
var name = element.
|
|
630
|
-
var result = element.
|
|
631
|
-
var tmp1_safe_receiver = file == null ? null : file.
|
|
629
|
+
var name = element.gd();
|
|
630
|
+
var result = element.hd();
|
|
631
|
+
var tmp1_safe_receiver = file == null ? null : file.r45(_FileName___init__impl__nzn12e(name));
|
|
632
632
|
var tmp;
|
|
633
633
|
if (tmp1_safe_receiver == null) {
|
|
634
634
|
tmp = null;
|
|
635
635
|
} else {
|
|
636
|
-
tmp1_safe_receiver.
|
|
636
|
+
tmp1_safe_receiver.w15(result);
|
|
637
637
|
tmp = Unit_getInstance();
|
|
638
638
|
}
|
|
639
639
|
if (tmp == null) {
|
|
@@ -652,7 +652,7 @@
|
|
|
652
652
|
// Inline function 'community.flock.wirespec.plugin.cli.emitters.<anonymous>' call
|
|
653
653
|
var packageString = component1(new PackageName(packageName));
|
|
654
654
|
var tmp;
|
|
655
|
-
switch (item.
|
|
655
|
+
switch (item.d9_1) {
|
|
656
656
|
case 0:
|
|
657
657
|
var tmp_0 = new JavaEmitter(packageString, logger);
|
|
658
658
|
var tmp_1;
|
|
@@ -736,7 +736,7 @@
|
|
|
736
736
|
// Inline function 'kotlin.collections.map' call
|
|
737
737
|
// Inline function 'kotlin.let' call
|
|
738
738
|
// Inline function 'kotlin.let' call
|
|
739
|
-
var tmp0_let = _this__u8e3s4.
|
|
739
|
+
var tmp0_let = _this__u8e3s4.x17();
|
|
740
740
|
var tmp1_let_this = WirespecSpec_getInstance();
|
|
741
741
|
// Inline function 'kotlin.contracts.contract' call
|
|
742
742
|
var tmp2_let = compile(tmp1_let_this, tmp0_let)(logger);
|
|
@@ -751,11 +751,11 @@
|
|
|
751
751
|
var item = tmp0_iterator.y();
|
|
752
752
|
var tmp$ret$6;
|
|
753
753
|
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>' call
|
|
754
|
-
var emitter = item.
|
|
755
|
-
var file = item.
|
|
754
|
+
var emitter = item.gd();
|
|
755
|
+
var file = item.hd();
|
|
756
756
|
var results = tmp2_let(emitter);
|
|
757
757
|
var tmp;
|
|
758
|
-
if (!emitter.
|
|
758
|
+
if (!emitter.b20_1) {
|
|
759
759
|
var tmp$ret$5;
|
|
760
760
|
// Inline function 'arrow.core.Either.map' call
|
|
761
761
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -764,10 +764,10 @@
|
|
|
764
764
|
var tmp_0;
|
|
765
765
|
if (results instanceof Right) {
|
|
766
766
|
// Inline function 'arrow.core.Either.map.<anonymous>' call
|
|
767
|
-
var tmp0_anonymous = results.
|
|
767
|
+
var tmp0_anonymous = results.b1z_1;
|
|
768
768
|
var tmp$ret$2;
|
|
769
769
|
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>.<anonymous>' call
|
|
770
|
-
tmp$ret$2 = listOf(new Emitted(Companion_getInstance_4().
|
|
770
|
+
tmp$ret$2 = listOf(new Emitted(Companion_getInstance_4().z20(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).d2b_1)), first(tmp0_anonymous).p21_1));
|
|
771
771
|
tmp_0 = new Right(tmp$ret$2);
|
|
772
772
|
} else {
|
|
773
773
|
if (results instanceof Left) {
|
|
@@ -790,13 +790,13 @@
|
|
|
790
790
|
while (tmp0_iterator_0.w()) {
|
|
791
791
|
var item_0 = tmp0_iterator_0.y();
|
|
792
792
|
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>' call
|
|
793
|
-
var results_0 = item_0.
|
|
794
|
-
var file_0 = item_0.
|
|
793
|
+
var results_0 = item_0.gd();
|
|
794
|
+
var file_0 = item_0.hd();
|
|
795
795
|
if (results_0 instanceof Right) {
|
|
796
|
-
write(results_0.
|
|
796
|
+
write(results_0.b1z_1, file_0);
|
|
797
797
|
} else {
|
|
798
798
|
if (results_0 instanceof Left) {
|
|
799
|
-
println(results_0.
|
|
799
|
+
println(results_0.v1y_1);
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
tmp0_mapTo_0.s(Unit_getInstance());
|
|
@@ -821,7 +821,7 @@
|
|
|
821
821
|
function compile$lambda($output) {
|
|
822
822
|
return function (it) {
|
|
823
823
|
var tmp = $output;
|
|
824
|
-
return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).
|
|
824
|
+
return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).l2b_1), _FileName___init__impl__nzn12e('console'), it);
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
827
|
function out$lambda($output, $this_out, $packageName) {
|
|
@@ -832,60 +832,60 @@
|
|
|
832
832
|
if ((tmp_0 == null ? null : new Output(tmp_0)) == null) {
|
|
833
833
|
var tmp$ret$1;
|
|
834
834
|
// Inline function 'kotlin.text.lowercase' call
|
|
835
|
-
var tmp0_lowercase = extension.
|
|
835
|
+
var tmp0_lowercase = extension.c9_1;
|
|
836
836
|
var tmp$ret$0;
|
|
837
837
|
// Inline function 'kotlin.js.asDynamic' call
|
|
838
838
|
tmp$ret$0 = tmp0_lowercase;
|
|
839
839
|
tmp$ret$1 = tmp$ret$0.toLowerCase();
|
|
840
|
-
tmp = $this_out.
|
|
840
|
+
tmp = $this_out.c2b_1 + '/out/' + tmp$ret$1;
|
|
841
841
|
} else {
|
|
842
842
|
tmp = new Output(tmp0_elvis_lhs);
|
|
843
843
|
}
|
|
844
844
|
var dir = tmp;
|
|
845
|
-
return $this_out.
|
|
845
|
+
return $this_out.g2b(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
848
|
function JavaFile(path) {
|
|
849
|
-
File.call(this, path.
|
|
849
|
+
File.call(this, path.g2b(VOID, VOID, FileExtension_Java_getInstance()));
|
|
850
850
|
}
|
|
851
|
-
protoOf(JavaFile).
|
|
852
|
-
return new JavaFile(this.
|
|
851
|
+
protoOf(JavaFile).r45 = function (fileName) {
|
|
852
|
+
return new JavaFile(this.o45_1.g2b(VOID, fileName));
|
|
853
853
|
};
|
|
854
854
|
function JsonFile(path) {
|
|
855
|
-
File.call(this, path.
|
|
855
|
+
File.call(this, path.g2b(VOID, VOID, FileExtension_Json_getInstance()));
|
|
856
856
|
}
|
|
857
|
-
protoOf(JsonFile).
|
|
858
|
-
return new JsonFile(this.
|
|
857
|
+
protoOf(JsonFile).r45 = function (fileName) {
|
|
858
|
+
return new JsonFile(this.o45_1.g2b(VOID, fileName));
|
|
859
859
|
};
|
|
860
860
|
function KotlinFile(path) {
|
|
861
|
-
File.call(this, path.
|
|
861
|
+
File.call(this, path.g2b(VOID, VOID, FileExtension_Kotlin_getInstance()));
|
|
862
862
|
}
|
|
863
|
-
protoOf(KotlinFile).
|
|
864
|
-
return new KotlinFile(this.
|
|
863
|
+
protoOf(KotlinFile).r45 = function (fileName) {
|
|
864
|
+
return new KotlinFile(this.o45_1.g2b(VOID, fileName));
|
|
865
865
|
};
|
|
866
866
|
function ScalaFile(path) {
|
|
867
|
-
File.call(this, path.
|
|
867
|
+
File.call(this, path.g2b(VOID, VOID, FileExtension_Scala_getInstance()));
|
|
868
868
|
}
|
|
869
|
-
protoOf(ScalaFile).
|
|
870
|
-
return new ScalaFile(this.
|
|
869
|
+
protoOf(ScalaFile).r45 = function (fileName) {
|
|
870
|
+
return new ScalaFile(this.o45_1.g2b(VOID, fileName));
|
|
871
871
|
};
|
|
872
872
|
function TypeScriptFile(path) {
|
|
873
|
-
File.call(this, path.
|
|
873
|
+
File.call(this, path.g2b(VOID, VOID, FileExtension_TypeScript_getInstance()));
|
|
874
874
|
}
|
|
875
|
-
protoOf(TypeScriptFile).
|
|
876
|
-
return new TypeScriptFile(this.
|
|
875
|
+
protoOf(TypeScriptFile).r45 = function (fileName) {
|
|
876
|
+
return new TypeScriptFile(this.o45_1.g2b(VOID, fileName));
|
|
877
877
|
};
|
|
878
878
|
function WirespecFile(path) {
|
|
879
|
-
File.call(this, path.
|
|
879
|
+
File.call(this, path.g2b(VOID, VOID, FileExtension_Wirespec_getInstance()));
|
|
880
880
|
}
|
|
881
|
-
protoOf(WirespecFile).
|
|
882
|
-
return new WirespecFile(this.
|
|
881
|
+
protoOf(WirespecFile).r45 = function (fileName) {
|
|
882
|
+
return new WirespecFile(this.o45_1.g2b(VOID, fileName));
|
|
883
883
|
};
|
|
884
884
|
function cli(args) {
|
|
885
885
|
main(args);
|
|
886
886
|
}
|
|
887
887
|
function parser(source) {
|
|
888
|
-
var tmp0_safe_receiver = parse(WirespecSpec_getInstance(), source)(get_noLogger()).
|
|
888
|
+
var tmp0_safe_receiver = parse(WirespecSpec_getInstance(), source)(get_noLogger()).a1z();
|
|
889
889
|
var tmp;
|
|
890
890
|
if (tmp0_safe_receiver == null) {
|
|
891
891
|
tmp = null;
|
|
@@ -942,14 +942,14 @@
|
|
|
942
942
|
return it;
|
|
943
943
|
}
|
|
944
944
|
function Directory$wirespecFiles$lambda_0(it) {
|
|
945
|
-
return endsWith(it, FileExtension_Wirespec_getInstance().
|
|
945
|
+
return endsWith(it, FileExtension_Wirespec_getInstance().b2b_1);
|
|
946
946
|
}
|
|
947
947
|
function Directory$wirespecFiles$lambda_1(it) {
|
|
948
|
-
return dropLast(it, FileExtension_Wirespec_getInstance().
|
|
948
|
+
return dropLast(it, FileExtension_Wirespec_getInstance().b2b_1.length + 1 | 0);
|
|
949
949
|
}
|
|
950
950
|
function Directory$wirespecFiles$lambda_2(this$0) {
|
|
951
951
|
return function (it) {
|
|
952
|
-
return new FullFilePath(this$0.
|
|
952
|
+
return new FullFilePath(this$0.p45_1, _FileName___init__impl__nzn12e(it));
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
955
|
function WirespecFile$_init_$ref_cj1n5j() {
|
|
@@ -960,10 +960,10 @@
|
|
|
960
960
|
return l;
|
|
961
961
|
}
|
|
962
962
|
function Directory(path) {
|
|
963
|
-
this.
|
|
963
|
+
this.p45_1 = path;
|
|
964
964
|
}
|
|
965
|
-
protoOf(Directory).
|
|
966
|
-
var tmp = asSequence(iterator(get_fs().readdirSync(this.
|
|
965
|
+
protoOf(Directory).q45 = function () {
|
|
966
|
+
var tmp = asSequence(iterator(get_fs().readdirSync(this.p45_1, 'utf-8')));
|
|
967
967
|
var tmp_0 = map(tmp, Directory$wirespecFiles$lambda);
|
|
968
968
|
var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0);
|
|
969
969
|
var tmp_2 = map(tmp_1, Directory$wirespecFiles$lambda_1);
|
|
@@ -971,20 +971,20 @@
|
|
|
971
971
|
return toSet_0(map(tmp_3, WirespecFile$_init_$ref_cj1n5j()));
|
|
972
972
|
};
|
|
973
973
|
function File(path) {
|
|
974
|
-
this.
|
|
974
|
+
this.o45_1 = path;
|
|
975
975
|
}
|
|
976
|
-
protoOf(File).
|
|
976
|
+
protoOf(File).x17 = function () {
|
|
977
977
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
978
|
-
return get_fs().readFileSync(this.
|
|
978
|
+
return get_fs().readFileSync(this.o45_1.toString(), 'utf-8');
|
|
979
979
|
};
|
|
980
|
-
protoOf(File).
|
|
980
|
+
protoOf(File).w15 = function (text) {
|
|
981
981
|
// Inline function 'kotlin.run' call
|
|
982
|
-
var tmp0_run = this.
|
|
982
|
+
var tmp0_run = this.o45_1.g2b(joinToString(split_0(this.o45_1.c2b_1, ['out']), 'out/node'));
|
|
983
983
|
// Inline function 'kotlin.contracts.contract' call
|
|
984
984
|
// Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>' call
|
|
985
985
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
986
|
-
if (!get_fs().existsSync(tmp0_run.
|
|
987
|
-
get_fs().mkdirSync(tmp0_run.
|
|
986
|
+
if (!get_fs().existsSync(tmp0_run.c2b_1)) {
|
|
987
|
+
get_fs().mkdirSync(tmp0_run.c2b_1, {recursive: true});
|
|
988
988
|
}
|
|
989
989
|
get_fs().writeFileSync(tmp0_run.toString(), text);
|
|
990
990
|
};
|