@flock/wirespec 0.11.7 → 0.11.8
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 +13 -13
- package/arrow-arrow-continuations.js +1 -1
- package/arrow-arrow-core.js +87 -88
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +1258 -1258
- package/colormath-root-colormath.js +436 -436
- package/kotlin-kotlin-stdlib.js +835 -764
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +4694 -4694
- package/kotlin-rgxgen.js +1853 -1853
- package/kotlinx-io-kotlinx-io-bytestring.js +15 -0
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
- package/kotlinx-io-kotlinx-io-core.js +2219 -0
- package/kotlinx-io-kotlinx-io-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js +1799 -1800
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1407 -1407
- package/markdown.js +1904 -1904
- package/mordant-mordant.js +1638 -1638
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1515 -1515
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +319 -319
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-avro.js +382 -382
- package/wirespec-src-converter-avro.js.map +1 -1
- package/wirespec-src-converter-openapi.js +607 -588
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +104 -104
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +313 -317
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.js +34 -34
- package/wirespec-src-tools-generator.js +35 -35
- package/wirespec-src-tools-generator.js.map +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './clikt-clikt.js', './wirespec-src-plugin-arguments.js', './arrow-arrow-core.js', './wirespec-src-compiler-core.js', './wirespec-src-converter-openapi.js', './wirespec-src-converter-avro.js', './wirespec-src-compiler-lib.js'], factory);
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './clikt-clikt.js', './wirespec-src-plugin-arguments.js', './arrow-arrow-core.js', './wirespec-src-compiler-core.js', './kotlinx-io-kotlinx-io-core.js', './wirespec-src-converter-openapi.js', './wirespec-src-converter-avro.js', './wirespec-src-compiler-lib.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./clikt-clikt.js'), require('./wirespec-src-plugin-arguments.js'), require('./arrow-arrow-core.js'), require('./wirespec-src-compiler-core.js'), require('./wirespec-src-converter-openapi.js'), require('./wirespec-src-converter-avro.js'), require('./wirespec-src-compiler-lib.js'));
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./clikt-clikt.js'), require('./wirespec-src-plugin-arguments.js'), require('./arrow-arrow-core.js'), require('./wirespec-src-compiler-core.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./wirespec-src-converter-openapi.js'), require('./wirespec-src-converter-avro.js'), require('./wirespec-src-compiler-lib.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'wirespec-src-plugin-cli'.");
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
if (typeof globalThis['wirespec-src-compiler-core'] === 'undefined') {
|
|
20
20
|
throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-plugin-cli'.");
|
|
21
21
|
}
|
|
22
|
+
if (typeof globalThis['kotlinx-io-kotlinx-io-core'] === 'undefined') {
|
|
23
|
+
throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'kotlinx-io-kotlinx-io-core' was not found. Please, check whether 'kotlinx-io-kotlinx-io-core' is loaded prior to 'wirespec-src-plugin-cli'.");
|
|
24
|
+
}
|
|
22
25
|
if (typeof globalThis['wirespec-src-converter-openapi'] === 'undefined') {
|
|
23
26
|
throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'wirespec-src-converter-openapi' was not found. Please, check whether 'wirespec-src-converter-openapi' is loaded prior to 'wirespec-src-plugin-cli'.");
|
|
24
27
|
}
|
|
@@ -28,87 +31,89 @@
|
|
|
28
31
|
if (typeof globalThis['wirespec-src-compiler-lib'] === 'undefined') {
|
|
29
32
|
throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'wirespec-src-compiler-lib' was not found. Please, check whether 'wirespec-src-compiler-lib' is loaded prior to 'wirespec-src-plugin-cli'.");
|
|
30
33
|
}
|
|
31
|
-
globalThis['wirespec-src-plugin-cli'] = factory(typeof globalThis['wirespec-src-plugin-cli'] === 'undefined' ? {} : globalThis['wirespec-src-plugin-cli'], globalThis['kotlin-kotlin-stdlib'], globalThis['clikt-clikt'], globalThis['wirespec-src-plugin-arguments'], globalThis['arrow-arrow-core'], globalThis['wirespec-src-compiler-core'], globalThis['wirespec-src-converter-openapi'], globalThis['wirespec-src-converter-avro'], globalThis['wirespec-src-compiler-lib']);
|
|
34
|
+
globalThis['wirespec-src-plugin-cli'] = factory(typeof globalThis['wirespec-src-plugin-cli'] === 'undefined' ? {} : globalThis['wirespec-src-plugin-cli'], globalThis['kotlin-kotlin-stdlib'], globalThis['clikt-clikt'], globalThis['wirespec-src-plugin-arguments'], globalThis['arrow-arrow-core'], globalThis['wirespec-src-compiler-core'], globalThis['kotlinx-io-kotlinx-io-core'], globalThis['wirespec-src-converter-openapi'], globalThis['wirespec-src-converter-avro'], globalThis['wirespec-src-compiler-lib']);
|
|
32
35
|
}
|
|
33
|
-
}(function (_, kotlin_kotlin, kotlin_clikt_clikt, kotlin_community_flock_wirespec_plugin_arguments_arguments, kotlin_io_arrow_kt_arrow_core, kotlin_community_flock_wirespec_compiler_core, kotlin_community_flock_wirespec_converter_openapi, kotlin_community_flock_wirespec_converter_avro, kotlin_community_flock_wirespec_compiler_lib) {
|
|
36
|
+
}(function (_, kotlin_kotlin, kotlin_clikt_clikt, kotlin_community_flock_wirespec_plugin_arguments_arguments, kotlin_io_arrow_kt_arrow_core, kotlin_community_flock_wirespec_compiler_core, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_community_flock_wirespec_converter_openapi, kotlin_community_flock_wirespec_converter_avro, kotlin_community_flock_wirespec_compiler_lib) {
|
|
34
37
|
'use strict';
|
|
35
38
|
//region block: imports
|
|
36
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
39
|
+
var Unit_instance = kotlin_kotlin.$_$.l4;
|
|
37
40
|
var subcommands = kotlin_clikt_clikt.$_$.d;
|
|
38
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
39
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
41
|
+
var protoOf = kotlin_kotlin.$_$.cb;
|
|
42
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ea;
|
|
40
43
|
var NoOpCliktCommand = kotlin_clikt_clikt.$_$.c;
|
|
41
44
|
var VOID = kotlin_kotlin.$_$.g;
|
|
42
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
45
|
+
var initMetadataForClass = kotlin_kotlin.$_$.da;
|
|
43
46
|
var option = kotlin_clikt_clikt.$_$.i;
|
|
44
47
|
var Companion_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.x;
|
|
45
48
|
var choice = kotlin_clikt_clikt.$_$.k;
|
|
46
49
|
var multiple = kotlin_clikt_clikt.$_$.h;
|
|
47
50
|
var Compile_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.y;
|
|
48
51
|
var Companion_instance_0 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.z;
|
|
49
|
-
var toSet = kotlin_kotlin.$_$.
|
|
52
|
+
var toSet = kotlin_kotlin.$_$.v8;
|
|
50
53
|
var _PackageName___init__impl__s13tbs = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.t;
|
|
51
54
|
var CompilerArguments = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.a;
|
|
52
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
53
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
55
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.kg;
|
|
56
|
+
var joinToString = kotlin_kotlin.$_$.x6;
|
|
54
57
|
var CliktError = kotlin_clikt_clikt.$_$.b;
|
|
55
58
|
var Left = kotlin_io_arrow_kt_arrow_core.$_$.d;
|
|
56
59
|
var Right = kotlin_io_arrow_kt_arrow_core.$_$.e;
|
|
57
60
|
var argument = kotlin_clikt_clikt.$_$.e;
|
|
58
61
|
var values = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.c;
|
|
59
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
60
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
62
|
+
var mapCapacity = kotlin_kotlin.$_$.n7;
|
|
63
|
+
var coerceAtLeast = kotlin_kotlin.$_$.nb;
|
|
61
64
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
62
65
|
var choice_0 = kotlin_clikt_clikt.$_$.j;
|
|
63
66
|
var Language_Wirespec_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.p;
|
|
64
|
-
var listOf = kotlin_kotlin.$_$.
|
|
67
|
+
var listOf = kotlin_kotlin.$_$.l7;
|
|
68
|
+
var FullDirPath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.d;
|
|
65
69
|
var Convert = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.g;
|
|
66
|
-
var setOf = kotlin_kotlin.$_$.
|
|
70
|
+
var setOf = kotlin_kotlin.$_$.a8;
|
|
67
71
|
var CliktCommand = kotlin_clikt_clikt.$_$.a;
|
|
68
72
|
var default_0 = kotlin_clikt_clikt.$_$.f;
|
|
69
73
|
var Companion_instance_1 = kotlin_community_flock_wirespec_compiler_core.$_$.q2;
|
|
70
74
|
var Level_ERROR_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.g2;
|
|
71
75
|
var flag = kotlin_clikt_clikt.$_$.g;
|
|
76
|
+
var Path = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
77
|
+
var get_SystemFileSystem = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
72
78
|
var Companion_instance_2 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.w;
|
|
73
|
-
var FullDirPath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.d;
|
|
74
79
|
var Console_instance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.v;
|
|
75
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
76
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
77
|
-
var trim = kotlin_kotlin.$_$.
|
|
78
|
-
var toString = kotlin_kotlin.$_$.
|
|
80
|
+
var THROW_CCE = kotlin_kotlin.$_$.of;
|
|
81
|
+
var isCharSequence = kotlin_kotlin.$_$.na;
|
|
82
|
+
var trim = kotlin_kotlin.$_$.ve;
|
|
83
|
+
var toString = kotlin_kotlin.$_$.gb;
|
|
79
84
|
var Level_DEBUG_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.f2;
|
|
80
85
|
var Level_INFO_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.h2;
|
|
81
86
|
var Level_WARN_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.i2;
|
|
82
|
-
var Enum = kotlin_kotlin.$_$.
|
|
83
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
84
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
85
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
87
|
+
var Enum = kotlin_kotlin.$_$.ef;
|
|
88
|
+
var KProperty1 = kotlin_kotlin.$_$.yb;
|
|
89
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.aa;
|
|
90
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.wa;
|
|
86
91
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
87
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
92
|
+
var copyToArray = kotlin_kotlin.$_$.c6;
|
|
88
93
|
var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.t1;
|
|
89
94
|
var FileReadException = kotlin_community_flock_wirespec_compiler_core.$_$.h;
|
|
90
95
|
var nonEmptyListOf = kotlin_io_arrow_kt_arrow_core.$_$.i;
|
|
91
96
|
var left = kotlin_io_arrow_kt_arrow_core.$_$.h;
|
|
92
97
|
var FileExtension_Wirespec_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.o;
|
|
93
98
|
var FullFilePath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.e;
|
|
94
|
-
var addAll = kotlin_kotlin.$_$.
|
|
99
|
+
var addAll = kotlin_kotlin.$_$.c5;
|
|
95
100
|
var Console = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.b;
|
|
96
101
|
var Compile = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.f;
|
|
97
102
|
var OpenApiV2Parser_instance = kotlin_community_flock_wirespec_converter_openapi.$_$.b;
|
|
98
103
|
var OpenApiV3Parser_instance = kotlin_community_flock_wirespec_converter_openapi.$_$.d;
|
|
99
104
|
var AvroParser_instance = kotlin_community_flock_wirespec_converter_avro.$_$.a;
|
|
100
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
105
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.n5;
|
|
101
106
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
102
|
-
var to = kotlin_kotlin.$_$.
|
|
107
|
+
var to = kotlin_kotlin.$_$.ng;
|
|
103
108
|
var _FileName___get_value__impl__3u4cz6 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.r;
|
|
104
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
105
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
106
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
107
|
-
var first = kotlin_kotlin.$_$.
|
|
109
|
+
var charSequenceLength = kotlin_kotlin.$_$.s9;
|
|
110
|
+
var charSequenceGet = kotlin_kotlin.$_$.r9;
|
|
111
|
+
var toString_0 = kotlin_kotlin.$_$.e2;
|
|
112
|
+
var first = kotlin_kotlin.$_$.m6;
|
|
108
113
|
var Emitted = kotlin_community_flock_wirespec_compiler_core.$_$.a;
|
|
109
114
|
var right = kotlin_io_arrow_kt_arrow_core.$_$.k;
|
|
110
115
|
var _FileName___init__impl__nzn12e = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.q;
|
|
111
|
-
var print = kotlin_kotlin.$_$.
|
|
116
|
+
var print = kotlin_kotlin.$_$.j9;
|
|
112
117
|
var PackageName = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.i;
|
|
113
118
|
var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.r1;
|
|
114
119
|
var JavaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.c;
|
|
@@ -126,34 +131,36 @@
|
|
|
126
131
|
var compile = kotlin_community_flock_wirespec_compiler_core.$_$.q1;
|
|
127
132
|
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.k2;
|
|
128
133
|
var Output = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.h;
|
|
129
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
134
|
+
var ensureNotNull = kotlin_kotlin.$_$.eg;
|
|
130
135
|
var _Output___get_value__impl__a8kw1g = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.s;
|
|
131
136
|
var _PackageName___get_value__impl__2zr98c = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.u;
|
|
132
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
133
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
134
|
-
var split = kotlin_kotlin.$_$.
|
|
137
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.a2;
|
|
138
|
+
var charArrayOf = kotlin_kotlin.$_$.p9;
|
|
139
|
+
var split = kotlin_kotlin.$_$.sd;
|
|
135
140
|
var get_spec = kotlin_community_flock_wirespec_compiler_core.$_$.o1;
|
|
136
141
|
var HasLanguageSpec = kotlin_community_flock_wirespec_compiler_core.$_$.p1;
|
|
142
|
+
var dropLast = kotlin_kotlin.$_$.pc;
|
|
143
|
+
var asSequence = kotlin_kotlin.$_$.i5;
|
|
144
|
+
var filter = kotlin_kotlin.$_$.ac;
|
|
145
|
+
var map = kotlin_kotlin.$_$.ec;
|
|
146
|
+
var toSet_0 = kotlin_kotlin.$_$.gc;
|
|
147
|
+
var substringAfterLast = kotlin_kotlin.$_$.wd;
|
|
148
|
+
var buffered = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
149
|
+
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
150
|
+
var buffered_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
151
|
+
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
137
152
|
var parse = kotlin_community_flock_wirespec_compiler_core.$_$.s1;
|
|
138
153
|
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
139
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
154
|
+
var isInterface = kotlin_kotlin.$_$.ra;
|
|
140
155
|
var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.e;
|
|
141
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
156
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
142
157
|
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.u1;
|
|
143
|
-
var
|
|
144
|
-
var
|
|
145
|
-
var
|
|
146
|
-
var
|
|
147
|
-
var
|
|
148
|
-
var
|
|
149
|
-
var toSet_0 = kotlin_kotlin.$_$.cc;
|
|
150
|
-
var split_0 = kotlin_kotlin.$_$.pd;
|
|
151
|
-
var Companion_instance_3 = kotlin_kotlin.$_$.b4;
|
|
152
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.a2;
|
|
153
|
-
var createFailure = kotlin_kotlin.$_$.yf;
|
|
154
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.d2;
|
|
155
|
-
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.b2;
|
|
156
|
-
var isArray = kotlin_kotlin.$_$.ea;
|
|
158
|
+
var Companion_instance_3 = kotlin_kotlin.$_$.g4;
|
|
159
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.f2;
|
|
160
|
+
var createFailure = kotlin_kotlin.$_$.dg;
|
|
161
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.i2;
|
|
162
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.g2;
|
|
163
|
+
var isArray = kotlin_kotlin.$_$.ja;
|
|
157
164
|
//endregion
|
|
158
165
|
//region block: pre-declaration
|
|
159
166
|
initMetadataForCompanion(Companion);
|
|
@@ -163,6 +170,7 @@
|
|
|
163
170
|
initMetadataForClass(Convert_0, 'Convert', VOID, CommonOptions);
|
|
164
171
|
initMetadataForClass(Options, 'Options', VOID, Enum);
|
|
165
172
|
initMetadataForClass(wirespec$this$1, VOID, VOID, VOID, [HasLanguageSpec]);
|
|
173
|
+
initMetadataForClass(Directory, 'Directory');
|
|
166
174
|
initMetadataForClass(File, 'File');
|
|
167
175
|
initMetadataForClass(JavaFile, 'JavaFile', VOID, File);
|
|
168
176
|
initMetadataForClass(JsonFile, 'JsonFile', VOID, File);
|
|
@@ -171,11 +179,10 @@
|
|
|
171
179
|
initMetadataForClass(TypeScriptFile, 'TypeScriptFile', VOID, File);
|
|
172
180
|
initMetadataForClass(WirespecFile, 'WirespecFile', VOID, File);
|
|
173
181
|
initMetadataForClass(parser$1, VOID, VOID, VOID, [HasLanguageSpec]);
|
|
174
|
-
initMetadataForClass(Directory, 'Directory');
|
|
175
182
|
//endregion
|
|
176
183
|
function WirespecCli$main$ref($boundThis) {
|
|
177
184
|
var l = function (p0) {
|
|
178
|
-
$boundThis.
|
|
185
|
+
$boundThis.m3s(p0);
|
|
179
186
|
return Unit_instance;
|
|
180
187
|
};
|
|
181
188
|
l.callableName = 'main';
|
|
@@ -183,7 +190,7 @@
|
|
|
183
190
|
}
|
|
184
191
|
function Companion() {
|
|
185
192
|
}
|
|
186
|
-
protoOf(Companion).
|
|
193
|
+
protoOf(Companion).t47 = function (compile, convert, write) {
|
|
187
194
|
return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile, write), new Convert_0(convert, write)]));
|
|
188
195
|
};
|
|
189
196
|
var Companion_instance_4;
|
|
@@ -194,7 +201,7 @@
|
|
|
194
201
|
NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
|
|
195
202
|
}
|
|
196
203
|
function _get_languages__ojonze($this) {
|
|
197
|
-
return $this.
|
|
204
|
+
return $this.t48_1.y41($this, languages$factory_0());
|
|
198
205
|
}
|
|
199
206
|
function Compile$run$lambda(e) {
|
|
200
207
|
var tmp0_elvis_lhs = e.message;
|
|
@@ -202,29 +209,29 @@
|
|
|
202
209
|
}
|
|
203
210
|
function Compile_0(block, write) {
|
|
204
211
|
CommonOptions.call(this);
|
|
205
|
-
this.
|
|
206
|
-
this.
|
|
207
|
-
this.
|
|
212
|
+
this.r48_1 = block;
|
|
213
|
+
this.s48_1 = write;
|
|
214
|
+
this.t48_1 = multiple(choice(option(this, Options_Language_getInstance().w48_1.slice(), 'Language'), Companion_instance.j2c()), VOID, true).j42(this, languages$factory());
|
|
208
215
|
}
|
|
209
|
-
protoOf(Compile_0).
|
|
216
|
+
protoOf(Compile_0).n3s = function () {
|
|
210
217
|
// Inline function 'kotlin.collections.forEach' call
|
|
211
218
|
// Inline function 'kotlin.let' call
|
|
212
|
-
var this_0 = new CompilerArguments(Compile_instance, this.
|
|
219
|
+
var this_0 = new CompilerArguments(Compile_instance, this.v49(this.u49()), Companion_instance_0.k2c(this.w49()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.x49()), this.z49(this.y49()), this.l46(), this.a4a());
|
|
213
220
|
// Inline function 'kotlin.contracts.contract' call
|
|
214
|
-
var tmp0_iterator = this.
|
|
221
|
+
var tmp0_iterator = this.r48_1(this_0).g();
|
|
215
222
|
while (tmp0_iterator.h()) {
|
|
216
223
|
var element = tmp0_iterator.i();
|
|
217
224
|
// Inline function 'community.flock.wirespec.plugin.cli.Compile.run.<anonymous>' call
|
|
218
225
|
if (element instanceof Right) {
|
|
219
226
|
// Inline function 'kotlin.let' call
|
|
220
227
|
// Inline function 'kotlin.contracts.contract' call
|
|
221
|
-
var destruct = element.
|
|
228
|
+
var destruct = element.zj_1;
|
|
222
229
|
var result = destruct.qd();
|
|
223
230
|
var file = destruct.rd();
|
|
224
|
-
this.
|
|
231
|
+
this.s48_1(result, file);
|
|
225
232
|
} else {
|
|
226
233
|
if (element instanceof Left) {
|
|
227
|
-
throw new CliktError(joinToString(element.
|
|
234
|
+
throw new CliktError(joinToString(element.tj_1, VOID, VOID, VOID, VOID, VOID, Compile$run$lambda));
|
|
228
235
|
} else {
|
|
229
236
|
noWhenBranchMatchedException();
|
|
230
237
|
}
|
|
@@ -232,15 +239,15 @@
|
|
|
232
239
|
}
|
|
233
240
|
};
|
|
234
241
|
function _get_format__qlarck($this) {
|
|
235
|
-
return $this.
|
|
242
|
+
return $this.a4b_1.y41($this, format$factory_0());
|
|
236
243
|
}
|
|
237
244
|
function _get_languages__ojonze_0($this) {
|
|
238
|
-
return $this.
|
|
245
|
+
return $this.b4b_1.y41($this, languages$factory_2());
|
|
239
246
|
}
|
|
240
247
|
function Convert_0(block, write) {
|
|
241
248
|
CommonOptions.call(this);
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
249
|
+
this.y4a_1 = block;
|
|
250
|
+
this.z4a_1 = write;
|
|
244
251
|
var tmp = this;
|
|
245
252
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
246
253
|
var this_0 = argument(this, VOID, 'Input format');
|
|
@@ -260,121 +267,97 @@
|
|
|
260
267
|
var tmp$ret$2 = element.p2_1;
|
|
261
268
|
destination.m2(tmp$ret$2, element);
|
|
262
269
|
}
|
|
263
|
-
tmp.
|
|
264
|
-
this.
|
|
270
|
+
tmp.a4b_1 = choice_0(this_0, destination, true).e41(this, format$factory());
|
|
271
|
+
this.b4b_1 = multiple(choice(option(this, Options_Language_getInstance().w48_1.slice(), 'Language'), Companion_instance.j2c(), VOID, true), listOf(Language_Wirespec_getInstance())).j42(this, languages$factory_1());
|
|
265
272
|
}
|
|
266
|
-
protoOf(Convert_0).
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
// Inline function 'kotlin.let' call
|
|
271
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
272
|
-
this.h3s('To convert, please specify a file', VOID, true);
|
|
273
|
+
protoOf(Convert_0).n3s = function () {
|
|
274
|
+
var inp = this.v49(this.u49());
|
|
275
|
+
if (inp instanceof FullDirPath) {
|
|
276
|
+
this.g3s('To convert, please specify a file', VOID, true);
|
|
273
277
|
}
|
|
274
278
|
// Inline function 'kotlin.collections.forEach' call
|
|
275
279
|
// Inline function 'kotlin.let' call
|
|
276
280
|
var tmp = new Convert(_get_format__qlarck(this));
|
|
277
|
-
var tmp_0 = this.
|
|
278
|
-
var tmp_1 = Companion_instance_0.l2c(this.x46());
|
|
281
|
+
var tmp_0 = Companion_instance_0.k2c(this.w49());
|
|
279
282
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
280
283
|
var this_0 = toSet(_get_languages__ojonze_0(this));
|
|
281
284
|
// Inline function 'kotlin.contracts.contract' call
|
|
282
|
-
var
|
|
285
|
+
var tmp_1;
|
|
283
286
|
if (this_0.l()) {
|
|
284
287
|
// Inline function 'community.flock.wirespec.plugin.cli.Convert.run.<anonymous>' call
|
|
285
|
-
|
|
288
|
+
tmp_1 = setOf(Language_Wirespec_getInstance());
|
|
286
289
|
} else {
|
|
287
|
-
|
|
290
|
+
tmp_1 = this_0;
|
|
288
291
|
}
|
|
289
|
-
var tmp$ret$
|
|
290
|
-
var this_1 = new CompilerArguments(tmp,
|
|
292
|
+
var tmp$ret$1 = tmp_1;
|
|
293
|
+
var this_1 = new CompilerArguments(tmp, inp, tmp_0, tmp$ret$1, _PackageName___init__impl__s13tbs(this.x49()), this.z49(this.y49()), this.l46(), this.a4a());
|
|
291
294
|
// Inline function 'kotlin.contracts.contract' call
|
|
292
|
-
var tmp0_iterator = this.
|
|
295
|
+
var tmp0_iterator = this.y4a_1(this_1).g();
|
|
293
296
|
while (tmp0_iterator.h()) {
|
|
294
297
|
var element = tmp0_iterator.i();
|
|
295
298
|
// Inline function 'community.flock.wirespec.plugin.cli.Convert.run.<anonymous>' call
|
|
296
299
|
if (element instanceof Right) {
|
|
297
300
|
// Inline function 'kotlin.let' call
|
|
298
301
|
// Inline function 'kotlin.contracts.contract' call
|
|
299
|
-
var destruct = element.
|
|
302
|
+
var destruct = element.zj_1;
|
|
300
303
|
var result = destruct.qd();
|
|
301
304
|
var file = destruct.rd();
|
|
302
|
-
this.
|
|
305
|
+
this.z4a_1(result, file);
|
|
303
306
|
} else {
|
|
304
307
|
if (element instanceof Left) {
|
|
305
|
-
this.
|
|
308
|
+
this.g3s(element.tj_1, VOID, true);
|
|
306
309
|
} else {
|
|
307
310
|
noWhenBranchMatchedException();
|
|
308
311
|
}
|
|
309
312
|
}
|
|
310
313
|
}
|
|
311
314
|
};
|
|
312
|
-
function _get_inputFile__x1bqj($this) {
|
|
313
|
-
return $this.o46_1.z41($this, inputFile$factory_0());
|
|
314
|
-
}
|
|
315
315
|
function CommonOptions() {
|
|
316
316
|
CliktCommand.call(this);
|
|
317
|
-
this.
|
|
318
|
-
this.
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
return this.p46_1.z41(this, inputDir$factory_0());
|
|
317
|
+
this.o49_1 = option(this, Options_Input_getInstance().w48_1.slice(), 'Input').j42(this, input$factory());
|
|
318
|
+
this.p49_1 = option(this, Options_Output_getInstance().w48_1.slice(), 'Output').j42(this, output$factory());
|
|
319
|
+
this.q49_1 = default_0(option(this, Options_PackageName_getInstance().w48_1.slice(), 'Package name'), 'community.flock.wirespec.generated').j42(this, packageName$factory());
|
|
320
|
+
this.r49_1 = default_0(option(this, Options_LogLevel_getInstance().w48_1.slice(), 'Log level: ' + Companion_instance_1.toString()), Level_ERROR_getInstance().toString()).j42(this, logLevel$factory());
|
|
321
|
+
this.s49_1 = flag(option(this, Options_Shared_getInstance().w48_1.slice(), 'Generate shared wirespec code'), [], false).j42(this, shared$factory());
|
|
322
|
+
this.t49_1 = flag(option(this, Options_Strict_getInstance().w48_1.slice(), 'Strict mode'), []).j42(this, strict$factory());
|
|
323
|
+
}
|
|
324
|
+
protoOf(CommonOptions).u49 = function () {
|
|
325
|
+
return this.o49_1.y41(this, input$factory_0());
|
|
327
326
|
};
|
|
328
|
-
protoOf(CommonOptions).
|
|
329
|
-
return this.
|
|
327
|
+
protoOf(CommonOptions).w49 = function () {
|
|
328
|
+
return this.p49_1.y41(this, output$factory_0());
|
|
330
329
|
};
|
|
331
|
-
protoOf(CommonOptions).
|
|
332
|
-
return this.
|
|
330
|
+
protoOf(CommonOptions).x49 = function () {
|
|
331
|
+
return this.q49_1.y41(this, packageName$factory_0());
|
|
333
332
|
};
|
|
334
|
-
protoOf(CommonOptions).
|
|
335
|
-
return this.
|
|
333
|
+
protoOf(CommonOptions).y49 = function () {
|
|
334
|
+
return this.r49_1.y41(this, logLevel$factory_0());
|
|
336
335
|
};
|
|
337
|
-
protoOf(CommonOptions).
|
|
338
|
-
return this.
|
|
336
|
+
protoOf(CommonOptions).l46 = function () {
|
|
337
|
+
return this.s49_1.y41(this, shared$factory_0());
|
|
339
338
|
};
|
|
340
|
-
protoOf(CommonOptions).
|
|
341
|
-
return this.
|
|
339
|
+
protoOf(CommonOptions).a4a = function () {
|
|
340
|
+
return this.t49_1.y41(this, strict$factory_0());
|
|
342
341
|
};
|
|
343
|
-
protoOf(CommonOptions).
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
if (tmp0_safe_receiver == null) {
|
|
351
|
-
tmp_0 = null;
|
|
352
|
-
} else {
|
|
353
|
-
// Inline function 'kotlin.let' call
|
|
354
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
355
|
-
tmp_0 = Companion_instance_2.z2b(tmp0_safe_receiver);
|
|
356
|
-
}
|
|
357
|
-
var tmp1_elvis_lhs = tmp_0;
|
|
358
|
-
var tmp_1;
|
|
359
|
-
if (tmp1_elvis_lhs == null) {
|
|
360
|
-
var tmp_2;
|
|
361
|
-
if (inputDir == null) {
|
|
362
|
-
tmp_2 = null;
|
|
363
|
-
} else {
|
|
364
|
-
// Inline function 'kotlin.let' call
|
|
365
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
366
|
-
tmp_2 = new FullDirPath(inputDir);
|
|
367
|
-
}
|
|
368
|
-
tmp_1 = tmp_2;
|
|
342
|
+
protoOf(CommonOptions).v49 = function (input) {
|
|
343
|
+
if (!(input == null)) {
|
|
344
|
+
var path = Path(input);
|
|
345
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().f47(path);
|
|
346
|
+
var tmp;
|
|
347
|
+
if (tmp0_elvis_lhs == null) {
|
|
348
|
+
throw new CliktError('Cannot access file or directory: ' + input);
|
|
369
349
|
} else {
|
|
370
|
-
|
|
350
|
+
tmp = tmp0_elvis_lhs;
|
|
371
351
|
}
|
|
372
|
-
var
|
|
373
|
-
|
|
352
|
+
var meta = tmp;
|
|
353
|
+
if (meta.i47_1)
|
|
354
|
+
return new FullDirPath(input);
|
|
355
|
+
if (meta.h47_1)
|
|
356
|
+
return Companion_instance_2.y2b(input);
|
|
374
357
|
}
|
|
375
|
-
return
|
|
358
|
+
return Console_instance;
|
|
376
359
|
};
|
|
377
|
-
protoOf(CommonOptions).
|
|
360
|
+
protoOf(CommonOptions).z49 = function (_this__u8e3s4) {
|
|
378
361
|
// Inline function 'kotlin.text.uppercase' call
|
|
379
362
|
// Inline function 'kotlin.text.trim' call
|
|
380
363
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -397,9 +380,8 @@
|
|
|
397
380
|
}
|
|
398
381
|
return tmp;
|
|
399
382
|
};
|
|
400
|
-
var
|
|
401
|
-
var
|
|
402
|
-
var Options_OutputDir_instance;
|
|
383
|
+
var Options_Input_instance;
|
|
384
|
+
var Options_Output_instance;
|
|
403
385
|
var Options_Language_instance;
|
|
404
386
|
var Options_PackageName_instance;
|
|
405
387
|
var Options_LogLevel_instance;
|
|
@@ -410,30 +392,25 @@
|
|
|
410
392
|
if (Options_entriesInitialized)
|
|
411
393
|
return Unit_instance;
|
|
412
394
|
Options_entriesInitialized = true;
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
Options_Strict_instance = new Options('Strict', 7, ['--strict']);
|
|
395
|
+
Options_Input_instance = new Options('Input', 0, ['-i', '--input']);
|
|
396
|
+
Options_Output_instance = new Options('Output', 1, ['-o', '--output']);
|
|
397
|
+
Options_Language_instance = new Options('Language', 2, ['-l', '--language']);
|
|
398
|
+
Options_PackageName_instance = new Options('PackageName', 3, ['-p', '--package']);
|
|
399
|
+
Options_LogLevel_instance = new Options('LogLevel', 4, ['--log-level']);
|
|
400
|
+
Options_Shared_instance = new Options('Shared', 5, ['--shared']);
|
|
401
|
+
Options_Strict_instance = new Options('Strict', 6, ['--strict']);
|
|
421
402
|
}
|
|
422
403
|
function Options(name, ordinal, flags) {
|
|
423
404
|
Enum.call(this, name, ordinal);
|
|
424
|
-
this.
|
|
425
|
-
}
|
|
426
|
-
function Options_InputDir_getInstance() {
|
|
427
|
-
Options_initEntries();
|
|
428
|
-
return Options_InputDir_instance;
|
|
405
|
+
this.w48_1 = flags;
|
|
429
406
|
}
|
|
430
|
-
function
|
|
407
|
+
function Options_Input_getInstance() {
|
|
431
408
|
Options_initEntries();
|
|
432
|
-
return
|
|
409
|
+
return Options_Input_instance;
|
|
433
410
|
}
|
|
434
|
-
function
|
|
411
|
+
function Options_Output_getInstance() {
|
|
435
412
|
Options_initEntries();
|
|
436
|
-
return
|
|
413
|
+
return Options_Output_instance;
|
|
437
414
|
}
|
|
438
415
|
function Options_Language_getInstance() {
|
|
439
416
|
Options_initEntries();
|
|
@@ -485,74 +462,64 @@
|
|
|
485
462
|
return _get_languages__ojonze_0(receiver);
|
|
486
463
|
}, null);
|
|
487
464
|
}
|
|
488
|
-
function
|
|
489
|
-
return getPropertyCallableRef('
|
|
490
|
-
return
|
|
465
|
+
function input$factory() {
|
|
466
|
+
return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
|
|
467
|
+
return receiver.u49();
|
|
491
468
|
}, null);
|
|
492
469
|
}
|
|
493
|
-
function
|
|
494
|
-
return getPropertyCallableRef('
|
|
495
|
-
return receiver.
|
|
496
|
-
}, null);
|
|
497
|
-
}
|
|
498
|
-
function outputDir$factory() {
|
|
499
|
-
return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) {
|
|
500
|
-
return receiver.x46();
|
|
470
|
+
function output$factory() {
|
|
471
|
+
return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
|
|
472
|
+
return receiver.w49();
|
|
501
473
|
}, null);
|
|
502
474
|
}
|
|
503
475
|
function packageName$factory() {
|
|
504
476
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
505
|
-
return receiver.
|
|
477
|
+
return receiver.x49();
|
|
506
478
|
}, null);
|
|
507
479
|
}
|
|
508
480
|
function logLevel$factory() {
|
|
509
481
|
return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
|
|
510
|
-
return receiver.
|
|
482
|
+
return receiver.y49();
|
|
511
483
|
}, null);
|
|
512
484
|
}
|
|
513
485
|
function shared$factory() {
|
|
514
486
|
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
|
|
515
|
-
return receiver.
|
|
487
|
+
return receiver.l46();
|
|
516
488
|
}, null);
|
|
517
489
|
}
|
|
518
490
|
function strict$factory() {
|
|
519
491
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
520
|
-
return receiver.
|
|
521
|
-
}, null);
|
|
522
|
-
}
|
|
523
|
-
function inputFile$factory_0() {
|
|
524
|
-
return getPropertyCallableRef('inputFile', 1, KProperty1, function (receiver) {
|
|
525
|
-
return _get_inputFile__x1bqj(receiver);
|
|
492
|
+
return receiver.a4a();
|
|
526
493
|
}, null);
|
|
527
494
|
}
|
|
528
|
-
function
|
|
529
|
-
return getPropertyCallableRef('
|
|
530
|
-
return receiver.
|
|
495
|
+
function input$factory_0() {
|
|
496
|
+
return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
|
|
497
|
+
return receiver.u49();
|
|
531
498
|
}, null);
|
|
532
499
|
}
|
|
533
|
-
function
|
|
534
|
-
return getPropertyCallableRef('
|
|
535
|
-
return receiver.
|
|
500
|
+
function output$factory_0() {
|
|
501
|
+
return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
|
|
502
|
+
return receiver.w49();
|
|
536
503
|
}, null);
|
|
537
504
|
}
|
|
538
505
|
function packageName$factory_0() {
|
|
539
506
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
540
|
-
return receiver.
|
|
507
|
+
return receiver.x49();
|
|
541
508
|
}, null);
|
|
542
509
|
}
|
|
543
510
|
function logLevel$factory_0() {
|
|
544
511
|
return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
|
|
545
|
-
return receiver.
|
|
512
|
+
return receiver.y49();
|
|
546
513
|
}, null);
|
|
547
514
|
}
|
|
548
515
|
function shared$factory_0() {
|
|
549
516
|
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
|
|
550
|
-
return receiver.
|
|
517
|
+
return receiver.l46();
|
|
551
518
|
}, null);
|
|
552
519
|
}
|
|
553
520
|
function strict$factory_0() {
|
|
554
521
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
555
|
-
return receiver.
|
|
522
|
+
return receiver.a4a();
|
|
556
523
|
}, null);
|
|
557
524
|
}
|
|
558
525
|
function main(args) {
|
|
@@ -586,31 +553,31 @@
|
|
|
586
553
|
var tmp_0 = compile$ref();
|
|
587
554
|
var tmp_1 = convert$ref();
|
|
588
555
|
// Inline function 'kotlin.contracts.contract' call
|
|
589
|
-
tmp.
|
|
556
|
+
tmp.t47(tmp_0, tmp_1, write$ref())(this_1);
|
|
590
557
|
}
|
|
591
558
|
function compile_0(arguments_0) {
|
|
592
|
-
var input = arguments_0.
|
|
593
|
-
var output = arguments_0.
|
|
594
|
-
var languages = arguments_0.
|
|
595
|
-
var packageName = arguments_0.
|
|
596
|
-
var logger = new Logger(arguments_0.
|
|
597
|
-
var operation = arguments_0.
|
|
559
|
+
var input = arguments_0.p2b_1;
|
|
560
|
+
var output = arguments_0.q2b_1;
|
|
561
|
+
var languages = arguments_0.r2b_1;
|
|
562
|
+
var packageName = arguments_0.s2b_1;
|
|
563
|
+
var logger = new Logger(arguments_0.t2b_1);
|
|
564
|
+
var operation = arguments_0.o2b_1;
|
|
598
565
|
var tmp;
|
|
599
566
|
if (operation instanceof Convert) {
|
|
600
567
|
var fullPath = input instanceof FullFilePath ? input : THROW_CCE();
|
|
601
568
|
var file = new JsonFile(fullPath);
|
|
602
|
-
var strict = arguments_0.
|
|
603
|
-
var format = operation.
|
|
569
|
+
var strict = arguments_0.v2b_1;
|
|
570
|
+
var format = operation.x2b_1;
|
|
604
571
|
var tmp_0;
|
|
605
572
|
switch (format.q2_1) {
|
|
606
573
|
case 0:
|
|
607
|
-
tmp_0 = OpenApiV2Parser_instance.
|
|
574
|
+
tmp_0 = OpenApiV2Parser_instance.t2a(file.y1a(), !strict);
|
|
608
575
|
break;
|
|
609
576
|
case 1:
|
|
610
|
-
tmp_0 = OpenApiV3Parser_instance.
|
|
577
|
+
tmp_0 = OpenApiV3Parser_instance.t2a(file.y1a(), !strict);
|
|
611
578
|
break;
|
|
612
579
|
case 2:
|
|
613
|
-
tmp_0 = AvroParser_instance.
|
|
580
|
+
tmp_0 = AvroParser_instance.c2e(file.y1a());
|
|
614
581
|
break;
|
|
615
582
|
default:
|
|
616
583
|
noWhenBranchMatchedException();
|
|
@@ -629,11 +596,11 @@
|
|
|
629
596
|
// Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
|
|
630
597
|
var emitter = item.qd();
|
|
631
598
|
var file_0 = item.rd();
|
|
632
|
-
var results = emitter.
|
|
599
|
+
var results = emitter.j22(ast);
|
|
633
600
|
var tmp_1;
|
|
634
|
-
if (!emitter.
|
|
601
|
+
if (!emitter.i22_1) {
|
|
635
602
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
636
|
-
var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.
|
|
603
|
+
var this_1 = _FileName___get_value__impl__3u4cz6(fullPath.d2c_1);
|
|
637
604
|
var tmp_2;
|
|
638
605
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
639
606
|
if (charSequenceLength(this_1) > 0) {
|
|
@@ -651,7 +618,7 @@
|
|
|
651
618
|
tmp_2 = this_1;
|
|
652
619
|
}
|
|
653
620
|
var tmp$ret$7 = tmp_2;
|
|
654
|
-
tmp_1 = to(listOf(new Emitted(tmp$ret$7, first(results).
|
|
621
|
+
tmp_1 = to(listOf(new Emitted(tmp$ret$7, first(results).r25_1)), file_0);
|
|
655
622
|
} else {
|
|
656
623
|
tmp_1 = to(results, file_0);
|
|
657
624
|
}
|
|
@@ -677,25 +644,25 @@
|
|
|
677
644
|
if (input instanceof FullDirPath) {
|
|
678
645
|
// Inline function 'kotlin.collections.flatMap' call
|
|
679
646
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
680
|
-
var this_3 = (new Directory(input.
|
|
647
|
+
var this_3 = (new Directory(input.i2c_1)).e4b();
|
|
681
648
|
var destination_1 = ArrayList_init_$Create$();
|
|
682
649
|
var tmp0_iterator_1 = this_3.g();
|
|
683
650
|
while (tmp0_iterator_1.h()) {
|
|
684
651
|
var element = tmp0_iterator_1.i();
|
|
685
652
|
// Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
|
|
686
|
-
var list = wirespec(element, languages, packageName, out(element.
|
|
653
|
+
var list = wirespec(element, languages, packageName, out(element.c4b_1, packageName, output), logger);
|
|
687
654
|
addAll(destination_1, list);
|
|
688
655
|
}
|
|
689
656
|
tmp_4 = destination_1;
|
|
690
657
|
} else {
|
|
691
658
|
if (input instanceof FullFilePath) {
|
|
692
659
|
var tmp_5;
|
|
693
|
-
if (input.
|
|
660
|
+
if (input.e2c_1.equals(FileExtension_Wirespec_getInstance())) {
|
|
694
661
|
// Inline function 'kotlin.let' call
|
|
695
662
|
// Inline function 'kotlin.contracts.contract' call
|
|
696
663
|
// Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call
|
|
697
664
|
var it = new WirespecFile(input);
|
|
698
|
-
tmp_5 = wirespec(it, languages, packageName, out(it.
|
|
665
|
+
tmp_5 = wirespec(it, languages, packageName, out(it.c4b_1, packageName, output), logger);
|
|
699
666
|
} else {
|
|
700
667
|
// Inline function 'arrow.core.nel' call
|
|
701
668
|
// Inline function 'arrow.core.nel' call
|
|
@@ -728,12 +695,12 @@
|
|
|
728
695
|
// Inline function 'community.flock.wirespec.plugin.cli.write.<anonymous>' call
|
|
729
696
|
var name = element.qd();
|
|
730
697
|
var result = element.rd();
|
|
731
|
-
var tmp1_safe_receiver = file == null ? null : file.
|
|
698
|
+
var tmp1_safe_receiver = file == null ? null : file.f4b(_FileName___init__impl__nzn12e(name));
|
|
732
699
|
var tmp;
|
|
733
700
|
if (tmp1_safe_receiver == null) {
|
|
734
701
|
tmp = null;
|
|
735
702
|
} else {
|
|
736
|
-
tmp1_safe_receiver.
|
|
703
|
+
tmp1_safe_receiver.s18(result);
|
|
737
704
|
tmp = Unit_instance;
|
|
738
705
|
}
|
|
739
706
|
if (tmp == null) {
|
|
@@ -867,7 +834,7 @@
|
|
|
867
834
|
// Inline function 'kotlin.let' call
|
|
868
835
|
// Inline function 'kotlin.contracts.contract' call
|
|
869
836
|
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>' call
|
|
870
|
-
var source = _this__u8e3s4.
|
|
837
|
+
var source = _this__u8e3s4.y1a();
|
|
871
838
|
// Inline function 'kotlin.collections.map' call
|
|
872
839
|
var this_0 = emitters(languages, packageName, path, logger);
|
|
873
840
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -880,7 +847,7 @@
|
|
|
880
847
|
var file = item.rd();
|
|
881
848
|
var results = compile(new wirespec$this$1(logger, emitter), source);
|
|
882
849
|
var tmp;
|
|
883
|
-
if (!emitter.
|
|
850
|
+
if (!emitter.i22_1) {
|
|
884
851
|
// Inline function 'arrow.core.Either.map' call
|
|
885
852
|
// Inline function 'kotlin.contracts.contract' call
|
|
886
853
|
// Inline function 'arrow.core.flatMap' call
|
|
@@ -889,8 +856,8 @@
|
|
|
889
856
|
if (results instanceof Right) {
|
|
890
857
|
// Inline function 'arrow.core.Either.map.<anonymous>' call
|
|
891
858
|
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>.<anonymous>' call
|
|
892
|
-
var it = results.
|
|
893
|
-
var tmp$ret$0 = listOf(new Emitted(Companion_getInstance().
|
|
859
|
+
var it = results.zj_1;
|
|
860
|
+
var tmp$ret$0 = listOf(new Emitted(Companion_getInstance().g24(_FileName___get_value__impl__3u4cz6(path(FileExtension_Wirespec_getInstance()).d2c_1)), first(it).r25_1));
|
|
894
861
|
tmp_0 = new Right(tmp$ret$0);
|
|
895
862
|
} else {
|
|
896
863
|
if (results instanceof Left) {
|
|
@@ -923,7 +890,7 @@
|
|
|
923
890
|
if (results_0 instanceof Right) {
|
|
924
891
|
// Inline function 'arrow.core.Either.map.<anonymous>' call
|
|
925
892
|
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>' call
|
|
926
|
-
var it_0 = results_0.
|
|
893
|
+
var it_0 = results_0.zj_1;
|
|
927
894
|
var tmp$ret$9 = to(it_0, file_0);
|
|
928
895
|
tmp_1 = new Right(tmp$ret$9);
|
|
929
896
|
} else {
|
|
@@ -963,7 +930,7 @@
|
|
|
963
930
|
function compile$lambda($output) {
|
|
964
931
|
return function (it) {
|
|
965
932
|
var tmp = $output;
|
|
966
|
-
return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).
|
|
933
|
+
return new FullFilePath(_Output___get_value__impl__a8kw1g(ensureNotNull(tmp == null ? null : new Output(tmp)).l2c_1), _FileName___init__impl__nzn12e('console'), it);
|
|
967
934
|
};
|
|
968
935
|
}
|
|
969
936
|
function out$lambda($output, $this_out, $packageName) {
|
|
@@ -975,65 +942,157 @@
|
|
|
975
942
|
// Inline function 'kotlin.text.lowercase' call
|
|
976
943
|
// Inline function 'kotlin.js.asDynamic' call
|
|
977
944
|
var tmp$ret$1 = extension.p2_1.toLowerCase();
|
|
978
|
-
tmp = $this_out.
|
|
945
|
+
tmp = $this_out.c2c_1 + '/out/' + tmp$ret$1;
|
|
979
946
|
} else {
|
|
980
947
|
tmp = new Output(tmp0_elvis_lhs);
|
|
981
948
|
}
|
|
982
949
|
var dir = tmp;
|
|
983
|
-
return $this_out.
|
|
950
|
+
return $this_out.g2c(toString(dir) + '/' + joinToString(split(_PackageName___get_value__impl__2zr98c($packageName), charArrayOf([_Char___init__impl__6a9atx(46)])), '/'), VOID, extension);
|
|
984
951
|
};
|
|
985
952
|
}
|
|
986
953
|
function wirespec$this$1($logger, $emitter) {
|
|
987
|
-
this.
|
|
988
|
-
this.
|
|
954
|
+
this.g4b_1 = $logger;
|
|
955
|
+
this.h4b_1 = $emitter;
|
|
989
956
|
}
|
|
990
|
-
protoOf(wirespec$this$1).
|
|
991
|
-
return this.
|
|
957
|
+
protoOf(wirespec$this$1).z21 = function () {
|
|
958
|
+
return this.g4b_1;
|
|
992
959
|
};
|
|
993
|
-
protoOf(wirespec$this$1).
|
|
994
|
-
return this.
|
|
960
|
+
protoOf(wirespec$this$1).g22 = function () {
|
|
961
|
+
return this.h4b_1;
|
|
962
|
+
};
|
|
963
|
+
function Directory$wirespecFiles$lambda(it) {
|
|
964
|
+
var tmp0_safe_receiver = get_SystemFileSystem().f47(it);
|
|
965
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h47_1;
|
|
966
|
+
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
967
|
+
}
|
|
968
|
+
function Directory$wirespecFiles$lambda_0(it) {
|
|
969
|
+
return get_extension(it) === FileExtension_Wirespec_getInstance().b2c_1;
|
|
970
|
+
}
|
|
971
|
+
function Directory$wirespecFiles$lambda_1(it) {
|
|
972
|
+
return it.r2();
|
|
973
|
+
}
|
|
974
|
+
function Directory$wirespecFiles$lambda_2(it) {
|
|
975
|
+
return dropLast(it, FileExtension_Wirespec_getInstance().b2c_1.length + 1 | 0);
|
|
976
|
+
}
|
|
977
|
+
function Directory$wirespecFiles$lambda_3(this$0) {
|
|
978
|
+
return function (it) {
|
|
979
|
+
return new FullFilePath(this$0.d4b_1, _FileName___init__impl__nzn12e(it));
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
function WirespecFile$_init_$ref_cj1n5j() {
|
|
983
|
+
var l = function (p0) {
|
|
984
|
+
return new WirespecFile(p0);
|
|
985
|
+
};
|
|
986
|
+
l.callableName = '<init>';
|
|
987
|
+
return l;
|
|
988
|
+
}
|
|
989
|
+
function Directory(path) {
|
|
990
|
+
this.d4b_1 = path;
|
|
991
|
+
}
|
|
992
|
+
protoOf(Directory).e4b = function () {
|
|
993
|
+
// Inline function 'kotlin.let' call
|
|
994
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
995
|
+
// Inline function 'community.flock.wirespec.plugin.cli.io.Directory.wirespecFiles.<anonymous>' call
|
|
996
|
+
var it = Path(this.d4b_1);
|
|
997
|
+
var tmp$ret$1 = get_SystemFileSystem().g47(it);
|
|
998
|
+
var tmp = asSequence(tmp$ret$1);
|
|
999
|
+
var tmp_0 = filter(tmp, Directory$wirespecFiles$lambda);
|
|
1000
|
+
var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0);
|
|
1001
|
+
var tmp_2 = map(tmp_1, Directory$wirespecFiles$lambda_1);
|
|
1002
|
+
var tmp_3 = map(tmp_2, Directory$wirespecFiles$lambda_2);
|
|
1003
|
+
var tmp_4 = map(tmp_3, Directory$wirespecFiles$lambda_3(this));
|
|
1004
|
+
return toSet_0(map(tmp_4, WirespecFile$_init_$ref_cj1n5j()));
|
|
1005
|
+
};
|
|
1006
|
+
function get_extension(_this__u8e3s4) {
|
|
1007
|
+
return substringAfterLast(_this__u8e3s4.r2(), _Char___init__impl__6a9atx(46), '');
|
|
1008
|
+
}
|
|
1009
|
+
function File(path) {
|
|
1010
|
+
this.c4b_1 = path;
|
|
1011
|
+
}
|
|
1012
|
+
protoOf(File).y1a = function () {
|
|
1013
|
+
// Inline function 'kotlin.let' call
|
|
1014
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1015
|
+
// Inline function 'community.flock.wirespec.plugin.cli.io.File.read.<anonymous>' call
|
|
1016
|
+
var it = Path(this.c4b_1.toString());
|
|
1017
|
+
return readString(buffered(get_SystemFileSystem().c47(it)));
|
|
1018
|
+
};
|
|
1019
|
+
protoOf(File).s18 = function (string) {
|
|
1020
|
+
// Inline function 'kotlin.let' call
|
|
1021
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1022
|
+
var path = Path(this.c4b_1.toString());
|
|
1023
|
+
var tmp0_safe_receiver = path.l47();
|
|
1024
|
+
var tmp;
|
|
1025
|
+
if (tmp0_safe_receiver == null) {
|
|
1026
|
+
tmp = null;
|
|
1027
|
+
} else {
|
|
1028
|
+
// Inline function 'kotlin.takeIf' call
|
|
1029
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1030
|
+
var tmp_0;
|
|
1031
|
+
// Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>.<anonymous>' call
|
|
1032
|
+
if (!get_SystemFileSystem().a47(tmp0_safe_receiver)) {
|
|
1033
|
+
tmp_0 = tmp0_safe_receiver;
|
|
1034
|
+
} else {
|
|
1035
|
+
tmp_0 = null;
|
|
1036
|
+
}
|
|
1037
|
+
tmp = tmp_0;
|
|
1038
|
+
}
|
|
1039
|
+
var tmp1_safe_receiver = tmp;
|
|
1040
|
+
if (tmp1_safe_receiver == null)
|
|
1041
|
+
null;
|
|
1042
|
+
else {
|
|
1043
|
+
// Inline function 'kotlin.let' call
|
|
1044
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1045
|
+
get_SystemFileSystem().b47(tmp1_safe_receiver, true);
|
|
1046
|
+
}
|
|
1047
|
+
// Inline function 'kotlin.apply' call
|
|
1048
|
+
var this_0 = buffered_0(get_SystemFileSystem().e47(path));
|
|
1049
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1050
|
+
// Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>.<anonymous>' call
|
|
1051
|
+
writeString(this_0, string);
|
|
1052
|
+
this_0.o8();
|
|
1053
|
+
return Unit_instance;
|
|
995
1054
|
};
|
|
996
1055
|
function JavaFile(path) {
|
|
997
|
-
File.call(this, path.
|
|
1056
|
+
File.call(this, path.g2c(VOID, VOID, FileExtension_Java_getInstance()));
|
|
998
1057
|
}
|
|
999
|
-
protoOf(JavaFile).
|
|
1000
|
-
return new JavaFile(this.
|
|
1058
|
+
protoOf(JavaFile).f4b = function (fileName) {
|
|
1059
|
+
return new JavaFile(this.c4b_1.g2c(VOID, fileName));
|
|
1001
1060
|
};
|
|
1002
1061
|
function JsonFile(path) {
|
|
1003
|
-
File.call(this, path.
|
|
1062
|
+
File.call(this, path.g2c(VOID, VOID, FileExtension_Json_getInstance()));
|
|
1004
1063
|
}
|
|
1005
|
-
protoOf(JsonFile).
|
|
1006
|
-
return new JsonFile(this.
|
|
1064
|
+
protoOf(JsonFile).f4b = function (fileName) {
|
|
1065
|
+
return new JsonFile(this.c4b_1.g2c(VOID, fileName));
|
|
1007
1066
|
};
|
|
1008
1067
|
function KotlinFile(path) {
|
|
1009
|
-
File.call(this, path.
|
|
1068
|
+
File.call(this, path.g2c(VOID, VOID, FileExtension_Kotlin_getInstance()));
|
|
1010
1069
|
}
|
|
1011
|
-
protoOf(KotlinFile).
|
|
1012
|
-
return new KotlinFile(this.
|
|
1070
|
+
protoOf(KotlinFile).f4b = function (fileName) {
|
|
1071
|
+
return new KotlinFile(this.c4b_1.g2c(VOID, fileName));
|
|
1013
1072
|
};
|
|
1014
1073
|
function ScalaFile(path) {
|
|
1015
|
-
File.call(this, path.
|
|
1074
|
+
File.call(this, path.g2c(VOID, VOID, FileExtension_Scala_getInstance()));
|
|
1016
1075
|
}
|
|
1017
|
-
protoOf(ScalaFile).
|
|
1018
|
-
return new ScalaFile(this.
|
|
1076
|
+
protoOf(ScalaFile).f4b = function (fileName) {
|
|
1077
|
+
return new ScalaFile(this.c4b_1.g2c(VOID, fileName));
|
|
1019
1078
|
};
|
|
1020
1079
|
function TypeScriptFile(path) {
|
|
1021
|
-
File.call(this, path.
|
|
1080
|
+
File.call(this, path.g2c(VOID, VOID, FileExtension_TypeScript_getInstance()));
|
|
1022
1081
|
}
|
|
1023
|
-
protoOf(TypeScriptFile).
|
|
1024
|
-
return new TypeScriptFile(this.
|
|
1082
|
+
protoOf(TypeScriptFile).f4b = function (fileName) {
|
|
1083
|
+
return new TypeScriptFile(this.c4b_1.g2c(VOID, fileName));
|
|
1025
1084
|
};
|
|
1026
1085
|
function WirespecFile(path) {
|
|
1027
|
-
File.call(this, path.
|
|
1086
|
+
File.call(this, path.g2c(VOID, VOID, FileExtension_Wirespec_getInstance()));
|
|
1028
1087
|
}
|
|
1029
|
-
protoOf(WirespecFile).
|
|
1030
|
-
return new WirespecFile(this.
|
|
1088
|
+
protoOf(WirespecFile).f4b = function (fileName) {
|
|
1089
|
+
return new WirespecFile(this.c4b_1.g2c(VOID, fileName));
|
|
1031
1090
|
};
|
|
1032
1091
|
function cli(args) {
|
|
1033
1092
|
main(args);
|
|
1034
1093
|
}
|
|
1035
1094
|
function parser(source) {
|
|
1036
|
-
var tmp0_safe_receiver = parse(new parser$1(), source).
|
|
1095
|
+
var tmp0_safe_receiver = parse(new parser$1(), source).yj();
|
|
1037
1096
|
var tmp;
|
|
1038
1097
|
if (tmp0_safe_receiver == null) {
|
|
1039
1098
|
tmp = null;
|
|
@@ -1086,74 +1145,11 @@
|
|
|
1086
1145
|
return tmp_2;
|
|
1087
1146
|
}
|
|
1088
1147
|
function parser$1() {
|
|
1089
|
-
this.
|
|
1090
|
-
}
|
|
1091
|
-
protoOf(parser$1).a22 = function () {
|
|
1092
|
-
return this.r48_1;
|
|
1093
|
-
};
|
|
1094
|
-
function Directory$wirespecFiles$lambda(it) {
|
|
1095
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
1096
|
-
return it;
|
|
1097
|
-
}
|
|
1098
|
-
function Directory$wirespecFiles$lambda_0(it) {
|
|
1099
|
-
return endsWith(it, FileExtension_Wirespec_getInstance().c2c_1);
|
|
1100
|
-
}
|
|
1101
|
-
function Directory$wirespecFiles$lambda_1(it) {
|
|
1102
|
-
return dropLast(it, FileExtension_Wirespec_getInstance().c2c_1.length + 1 | 0);
|
|
1103
|
-
}
|
|
1104
|
-
function Directory$wirespecFiles$lambda_2(this$0) {
|
|
1105
|
-
return function (it) {
|
|
1106
|
-
return new FullFilePath(this$0.g48_1, _FileName___init__impl__nzn12e(it));
|
|
1107
|
-
};
|
|
1108
|
-
}
|
|
1109
|
-
function WirespecFile$_init_$ref_cj1n5j() {
|
|
1110
|
-
var l = function (p0) {
|
|
1111
|
-
return new WirespecFile(p0);
|
|
1112
|
-
};
|
|
1113
|
-
l.callableName = '<init>';
|
|
1114
|
-
return l;
|
|
1115
|
-
}
|
|
1116
|
-
function Directory(path) {
|
|
1117
|
-
this.g48_1 = path;
|
|
1118
|
-
}
|
|
1119
|
-
protoOf(Directory).h48 = function () {
|
|
1120
|
-
var tmp = asSequence(iterator(get_fs().readdirSync(this.g48_1, 'utf-8')));
|
|
1121
|
-
var tmp_0 = map(tmp, Directory$wirespecFiles$lambda);
|
|
1122
|
-
var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0);
|
|
1123
|
-
var tmp_2 = map(tmp_1, Directory$wirespecFiles$lambda_1);
|
|
1124
|
-
var tmp_3 = map(tmp_2, Directory$wirespecFiles$lambda_2(this));
|
|
1125
|
-
return toSet_0(map(tmp_3, WirespecFile$_init_$ref_cj1n5j()));
|
|
1126
|
-
};
|
|
1127
|
-
function File(path) {
|
|
1128
|
-
this.f48_1 = path;
|
|
1148
|
+
this.o4b_1 = get_noLogger();
|
|
1129
1149
|
}
|
|
1130
|
-
protoOf(
|
|
1131
|
-
|
|
1132
|
-
return get_fs().readFileSync(this.f48_1.toString(), 'utf-8');
|
|
1150
|
+
protoOf(parser$1).z21 = function () {
|
|
1151
|
+
return this.o4b_1;
|
|
1133
1152
|
};
|
|
1134
|
-
protoOf(File).t18 = function (string) {
|
|
1135
|
-
// Inline function 'kotlin.run' call
|
|
1136
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1137
|
-
// Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>' call
|
|
1138
|
-
var $this$run = this.f48_1.h2c(joinToString(split_0(this.f48_1.d2c_1, ['out']), 'out/node'));
|
|
1139
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
1140
|
-
if (!get_fs().existsSync($this$run.d2c_1)) {
|
|
1141
|
-
get_fs().mkdirSync($this$run.d2c_1, {recursive: true});
|
|
1142
|
-
}
|
|
1143
|
-
get_fs().writeFileSync($this$run.toString(), string);
|
|
1144
|
-
};
|
|
1145
|
-
function get_fs() {
|
|
1146
|
-
_init_properties_JavaScriptBindings_kt__clolet();
|
|
1147
|
-
return fs;
|
|
1148
|
-
}
|
|
1149
|
-
var fs;
|
|
1150
|
-
var properties_initialized_JavaScriptBindings_kt_6og6hv;
|
|
1151
|
-
function _init_properties_JavaScriptBindings_kt__clolet() {
|
|
1152
|
-
if (!properties_initialized_JavaScriptBindings_kt_6og6hv) {
|
|
1153
|
-
properties_initialized_JavaScriptBindings_kt_6og6hv = true;
|
|
1154
|
-
fs = require('node:fs');
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
1153
|
function get_nodeArgs() {
|
|
1158
1154
|
_init_properties_CommandLineArguments_kt__b5v7hl();
|
|
1159
1155
|
return nodeArgs;
|
|
@@ -1199,8 +1195,8 @@
|
|
|
1199
1195
|
}
|
|
1200
1196
|
}
|
|
1201
1197
|
//region block: post-declaration
|
|
1202
|
-
protoOf(wirespec$this$1).
|
|
1203
|
-
protoOf(parser$1).
|
|
1198
|
+
protoOf(wirespec$this$1).y21 = get_spec;
|
|
1199
|
+
protoOf(parser$1).y21 = get_spec;
|
|
1204
1200
|
//endregion
|
|
1205
1201
|
//region block: init
|
|
1206
1202
|
Companion_instance_4 = new Companion();
|