@flock/wirespec 0.15.2 → 0.15.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.mjs +11 -11
- package/arrow-arrow-core.mjs +101 -101
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt.mjs +1743 -1667
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +483 -464
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +1700 -1492
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +5037 -5033
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1916 -1911
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +544 -538
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1858 -1836
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1527 -1523
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/markdown.mjs +2031 -2028
- package/markdown.mjs.map +1 -1
- package/mordant-mordant.mjs +2173 -2045
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +4 -2
- package/wirespec-src-compiler-core.mjs +2451 -2309
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +466 -460
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +555 -558
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +4 -0
- package/wirespec-src-converter-common.mjs.map +1 -0
- package/wirespec-src-converter-openapi.mjs +1287 -1227
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +264 -299
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +256 -154
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +107 -111
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +55 -50
- package/wirespec-src-tools-generator.mjs.map +1 -1
|
@@ -2,10 +2,11 @@ import {
|
|
|
2
2
|
CliktError136b5l5psfi1n as CliktError,
|
|
3
3
|
subcommands3iz66ruo6cdc as subcommands,
|
|
4
4
|
NoOpCliktCommand2adtfdm68nv09 as NoOpCliktCommand,
|
|
5
|
+
argument2zdhc640dnlyc as argument,
|
|
6
|
+
optional2v0ee42t2688o as optional,
|
|
5
7
|
option2wnxma00ykjjp as option,
|
|
6
8
|
choice1qx2pgx161pnc as choice,
|
|
7
9
|
multiple1ilt3bwdbyd8l as multiple,
|
|
8
|
-
argument2zdhc640dnlyc as argument,
|
|
9
10
|
choiceie3147xkuo29 as choice_0,
|
|
10
11
|
CliktCommand1a5aj7xujka26 as CliktCommand,
|
|
11
12
|
default2v6m45aspyoyr as default_0,
|
|
@@ -17,7 +18,8 @@ import {
|
|
|
17
18
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
18
19
|
VOID7hggqo3abtya as VOID,
|
|
19
20
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
20
|
-
|
|
21
|
+
Unit_instanceat14thlj150z as Unit_instance,
|
|
22
|
+
listOfvhqybd2zx248 as listOf,
|
|
21
23
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
22
24
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
23
25
|
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
@@ -31,25 +33,25 @@ import {
|
|
|
31
33
|
ArrayList_init_$Create$3m1kyiqequwm5 as ArrayList_init_$Create$,
|
|
32
34
|
KProperty1ca4yb4wlo496 as KProperty1,
|
|
33
35
|
getPropertyCallableRef1ajb9in178r5r as getPropertyCallableRef,
|
|
34
|
-
|
|
36
|
+
until1jbpn0z3f8lbg as until,
|
|
35
37
|
ArrayList_init_$Create$2rimpp4x9tjd3 as ArrayList_init_$Create$_0,
|
|
36
|
-
copyToArray2j022khrow2yi as copyToArray,
|
|
37
38
|
joinToString1cxrrlmo0chqs as joinToString,
|
|
38
39
|
IllegalStateException_init_$Create$1nm9y6jd3c9iy as IllegalStateException_init_$Create$,
|
|
39
40
|
addAll1k27qatfgp3k5 as addAll,
|
|
41
|
+
copyToArray2j022khrow2yi as copyToArray,
|
|
40
42
|
isArray1hxjqtqy632bc as isArray,
|
|
41
43
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
42
44
|
import {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
FileExtension_Wirespec_getInstance260g74sz3zqjq as FileExtension_Wirespec_getInstance,
|
|
46
|
+
FileExtension_JSON_getInstance24fo4nmpc6x68 as FileExtension_JSON_getInstance,
|
|
47
|
+
Companion_instance23sx7f8mbt1q7 as Companion_instance,
|
|
48
|
+
Companion_instance3sb1qxxpgc8bo as Companion_instance_0,
|
|
47
49
|
EmitShared28lad9gpofiy4 as EmitShared,
|
|
48
50
|
Logger1cwdyrq5itr5l as Logger,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
Level_ERROR_getInstance19uouzczl49bf as Level_ERROR_getInstance,
|
|
52
|
+
Level_DEBUG_getInstance120gr1dodanmw as Level_DEBUG_getInstance,
|
|
53
|
+
Level_INFO_getInstancevr8f23fhidva as Level_INFO_getInstance,
|
|
54
|
+
Level_WARN_getInstance10k8p0ght4zmu as Level_WARN_getInstance,
|
|
53
55
|
JavaEmitter1iajkiqm8e1w2 as JavaEmitter,
|
|
54
56
|
KotlinEmitter3u2bd89c6zjpn as KotlinEmitter,
|
|
55
57
|
PythonEmitter2ympv43525ly9 as PythonEmitter,
|
|
@@ -63,8 +65,8 @@ import {
|
|
|
63
65
|
NoLoggero51bdi3we1s0 as NoLogger,
|
|
64
66
|
} from './wirespec-src-compiler-core.mjs';
|
|
65
67
|
import {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
Companion_instancewgxql7b970h7 as Companion_instance_1,
|
|
69
|
+
Language_Kotlin_getInstancesf3hf9q9fn0g as Language_Kotlin_getInstance,
|
|
68
70
|
getFullPath4g3ciksg8rpm as getFullPath,
|
|
69
71
|
read1bpb5m43oodfb as read,
|
|
70
72
|
Source2leyaqfqfs5k3 as Source,
|
|
@@ -73,11 +75,15 @@ import {
|
|
|
73
75
|
wirespecSources3k3ry4x3ljoa3 as wirespecSources,
|
|
74
76
|
or33xhl4wx85q9x as or,
|
|
75
77
|
DirectoryPath39bbfr0ixndbr as DirectoryPath,
|
|
76
|
-
|
|
78
|
+
ClassPath7upbvx9mwagz as ClassPath,
|
|
79
|
+
_Name___init__impl__o4q07e3fjy1youl9nku as _Name___init__impl__o4q07e,
|
|
77
80
|
getOutPutPathqmn3xkxu6se6 as getOutPutPath,
|
|
78
81
|
CompilerArguments27p1etc1665zg as CompilerArguments,
|
|
79
82
|
values39f22etrsivck as values,
|
|
80
83
|
ConverterArgumentsa8xc45eyvf51 as ConverterArguments,
|
|
84
|
+
Companion_instance19lljpggtes6o as Companion_instance_2,
|
|
85
|
+
_DirectoryPath___get_value__impl__hdy2e33exlp2vb3n338 as _DirectoryPath___get_value__impl__hdy2e3,
|
|
86
|
+
write1u316o1mmac8j as write,
|
|
81
87
|
compile3ocumkpx3p9ko as compile,
|
|
82
88
|
convert3g5kyi4d6y9kc as convert,
|
|
83
89
|
} from './wirespec-src-plugin-arguments.mjs';
|
|
@@ -85,23 +91,23 @@ import {
|
|
|
85
91
|
Left2oemzq1tpcg4i as Left,
|
|
86
92
|
Right351sh2v8odavg as Right,
|
|
87
93
|
nonEmptySetOf3p7fhmt51pz4b as nonEmptySetOf,
|
|
88
|
-
toNonEmptySetOrNull1tjnd9jrkd4bs as toNonEmptySetOrNull,
|
|
89
94
|
NonEmptySet1rtvr2guloo52 as NonEmptySet,
|
|
95
|
+
toNonEmptySetOrNull1tjnd9jrkd4bs as toNonEmptySetOrNull,
|
|
90
96
|
nonEmptyListOf17xawqyzwrlrt as nonEmptyListOf,
|
|
91
|
-
|
|
97
|
+
Companion_instance1agi799z0n1y4 as Companion_instance_3,
|
|
92
98
|
right2w60qw9uivnyr as right,
|
|
93
99
|
nonFatalOrThrow35agffkx4bbtz as nonFatalOrThrow,
|
|
94
100
|
left3pixsqou14wpr as left,
|
|
95
101
|
} from './arrow-arrow-core.mjs';
|
|
96
102
|
import {
|
|
97
|
-
|
|
98
|
-
|
|
103
|
+
OpenAPIV2Emitter_getInstance2h4ew4hncs9qx as OpenAPIV2Emitter_getInstance,
|
|
104
|
+
OpenAPIV3Emitter_getInstance26cg8x9h7k2p7 as OpenAPIV3Emitter_getInstance,
|
|
99
105
|
} from './wirespec-src-converter-openapi.mjs';
|
|
100
106
|
import { produce1z6drlwotu836 as produce } from './wirespec-src-compiler-lib.mjs';
|
|
101
107
|
//region block: imports
|
|
102
108
|
//endregion
|
|
103
109
|
//region block: pre-declaration
|
|
104
|
-
initMetadataForClass(
|
|
110
|
+
initMetadataForClass(NoInputReceived, 'NoInputReceived', NoInputReceived, CliktError);
|
|
105
111
|
initMetadataForClass(NoClasspathPossible, 'NoClasspathPossible', NoClasspathPossible, CliktError);
|
|
106
112
|
initMetadataForClass(SpecificFile, 'SpecificFile', VOID, CliktError);
|
|
107
113
|
initMetadataForClass(WirespecFileError, 'WirespecFileError', WirespecFileError, SpecificFile);
|
|
@@ -114,11 +120,11 @@ initMetadataForClass(CommonOptions, 'CommonOptions', VOID, CliktCommand);
|
|
|
114
120
|
initMetadataForClass(Compile, 'Compile', VOID, CommonOptions);
|
|
115
121
|
initMetadataForClass(Convert, 'Convert', VOID, CommonOptions);
|
|
116
122
|
initMetadataForClass(Options, 'Options', VOID, Enum);
|
|
117
|
-
initMetadataForClass(parser$1, VOID, VOID, VOID, [HasLanguageSpec, NoLogger]);
|
|
123
|
+
initMetadataForClass(parser$this$this$this$this$1, VOID, VOID, VOID, [HasLanguageSpec, NoLogger]);
|
|
118
124
|
//endregion
|
|
119
|
-
function
|
|
120
|
-
CliktError.call(this, '
|
|
121
|
-
captureStack(this,
|
|
125
|
+
function NoInputReceived() {
|
|
126
|
+
CliktError.call(this, 'No input file, directory, or stdin received.');
|
|
127
|
+
captureStack(this, NoInputReceived);
|
|
122
128
|
}
|
|
123
129
|
function NoClasspathPossible() {
|
|
124
130
|
CliktError.call(this, 'No classpath input possible in cli.');
|
|
@@ -146,18 +152,21 @@ function SpecificFile(extension) {
|
|
|
146
152
|
}
|
|
147
153
|
function Companion() {
|
|
148
154
|
}
|
|
149
|
-
protoOf(Companion).
|
|
155
|
+
protoOf(Companion).p4a = function (compile, convert) {
|
|
150
156
|
return subcommands(new WirespecCli(), [new Compile(compile), new Convert(convert)]);
|
|
151
157
|
};
|
|
152
|
-
var
|
|
158
|
+
var Companion_instance_4;
|
|
153
159
|
function Companion_getInstance() {
|
|
154
|
-
return
|
|
160
|
+
return Companion_instance_4;
|
|
155
161
|
}
|
|
156
162
|
function WirespecCli() {
|
|
157
163
|
NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
|
|
158
164
|
}
|
|
165
|
+
function _get_stdin__b8xnlj($this) {
|
|
166
|
+
return $this.o4b_1.x47($this, stdin$factory_0());
|
|
167
|
+
}
|
|
159
168
|
function _get_languages__ojonze($this) {
|
|
160
|
-
return $this.
|
|
169
|
+
return $this.p4b_1.x47($this, languages$factory_0());
|
|
161
170
|
}
|
|
162
171
|
function run$handleError(p0) {
|
|
163
172
|
handleError(p0);
|
|
@@ -176,10 +185,6 @@ function handleError$ref_0() {
|
|
|
176
185
|
l.callableName = 'handleError';
|
|
177
186
|
return l;
|
|
178
187
|
}
|
|
179
|
-
function Compile$run$lambda(filePath, string) {
|
|
180
|
-
write(filePath, string);
|
|
181
|
-
return Unit_instance;
|
|
182
|
-
}
|
|
183
188
|
function Compile$run$handleError$ref() {
|
|
184
189
|
return function (p0) {
|
|
185
190
|
run$handleError(p0);
|
|
@@ -188,24 +193,25 @@ function Compile$run$handleError$ref() {
|
|
|
188
193
|
}
|
|
189
194
|
function Compile(compiler) {
|
|
190
195
|
CommonOptions.call(this);
|
|
191
|
-
this.
|
|
192
|
-
this.
|
|
196
|
+
this.n4b_1 = compiler;
|
|
197
|
+
this.o4b_1 = optional(argument(this, VOID, 'stdin')).d47(this, stdin$factory());
|
|
198
|
+
this.p4b_1 = multiple(choice(option(this, Options_Language_getInstance().s4b_1.slice(), 'Language'), Companion_instance_1.q2i(), VOID, true), listOf(Language_Kotlin_getInstance())).h48(this, languages$factory());
|
|
193
199
|
}
|
|
194
|
-
protoOf(Compile).
|
|
200
|
+
protoOf(Compile).l3y = function () {
|
|
195
201
|
// Inline function 'arrow.core.getOrElse' call
|
|
196
202
|
// Inline function 'kotlin.contracts.contract' call
|
|
197
203
|
// Inline function 'arrow.core.Either.fold' call
|
|
198
|
-
var this_0 = getFullPath(this.
|
|
204
|
+
var this_0 = getFullPath(this.q4c());
|
|
199
205
|
// Inline function 'kotlin.contracts.contract' call
|
|
200
206
|
var tmp;
|
|
201
207
|
if (this_0 instanceof Right) {
|
|
202
|
-
// Inline function 'arrow.core.getOrElse.stub_for_inlining' call
|
|
203
208
|
// Inline function 'arrow.core.identity' call
|
|
204
|
-
|
|
209
|
+
// Inline function 'arrow.core.identity' call
|
|
210
|
+
tmp = this_0.dk_1;
|
|
205
211
|
} else {
|
|
206
212
|
if (this_0 instanceof Left) {
|
|
207
|
-
var it = this_0.
|
|
208
|
-
throw new CliktError(it.
|
|
213
|
+
var it = this_0.xj_1;
|
|
214
|
+
throw new CliktError(it.t2j_1);
|
|
209
215
|
} else {
|
|
210
216
|
noWhenBranchMatchedException();
|
|
211
217
|
}
|
|
@@ -213,23 +219,41 @@ protoOf(Compile).d3z = function () {
|
|
|
213
219
|
var inputPath = tmp;
|
|
214
220
|
var tmp_0;
|
|
215
221
|
if (inputPath == null) {
|
|
216
|
-
|
|
222
|
+
var tmp1_safe_receiver = _get_stdin__b8xnlj(this);
|
|
223
|
+
var tmp_1;
|
|
224
|
+
if (tmp1_safe_receiver == null) {
|
|
225
|
+
tmp_1 = null;
|
|
226
|
+
} else {
|
|
227
|
+
// Inline function 'kotlin.let' call
|
|
228
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
229
|
+
// Inline function 'community.flock.wirespec.plugin.cli.Compile.run.<anonymous>' call
|
|
230
|
+
tmp_1 = nonEmptySetOf(new Source(_Name___init__impl__o4q07e('stdin'), tmp1_safe_receiver), []);
|
|
231
|
+
}
|
|
232
|
+
var tmp2_elvis_lhs = tmp_1;
|
|
233
|
+
var tmp_2;
|
|
234
|
+
var tmp_3 = tmp2_elvis_lhs;
|
|
235
|
+
if ((tmp_3 == null ? null : new NonEmptySet(tmp_3)) == null) {
|
|
236
|
+
throw new NoInputReceived();
|
|
237
|
+
} else {
|
|
238
|
+
tmp_2 = tmp2_elvis_lhs;
|
|
239
|
+
}
|
|
240
|
+
tmp_0 = tmp_2;
|
|
217
241
|
} else {
|
|
218
|
-
if (inputPath instanceof
|
|
242
|
+
if (inputPath instanceof ClassPath) {
|
|
219
243
|
throw new NoClasspathPossible();
|
|
220
244
|
} else {
|
|
221
245
|
if (inputPath instanceof DirectoryPath) {
|
|
222
|
-
var
|
|
223
|
-
tmp_0 = or(
|
|
246
|
+
var tmp_4 = wirespecSources(new Directory(inputPath.n2j_1));
|
|
247
|
+
tmp_0 = or(tmp_4, handleError$ref()).qk_1;
|
|
224
248
|
} else {
|
|
225
249
|
if (inputPath instanceof FilePath) {
|
|
226
|
-
var
|
|
227
|
-
if (inputPath.
|
|
228
|
-
|
|
250
|
+
var tmp_5;
|
|
251
|
+
if (inputPath.s2j_1.r2_1 === 4) {
|
|
252
|
+
tmp_5 = nonEmptySetOf(new Source(inputPath.r2j_1, read(inputPath)), []);
|
|
229
253
|
} else {
|
|
230
254
|
throw new WirespecFileError();
|
|
231
255
|
}
|
|
232
|
-
tmp_0 =
|
|
256
|
+
tmp_0 = tmp_5;
|
|
233
257
|
} else {
|
|
234
258
|
noWhenBranchMatchedException();
|
|
235
259
|
}
|
|
@@ -237,19 +261,32 @@ protoOf(Compile).d3z = function () {
|
|
|
237
261
|
}
|
|
238
262
|
}
|
|
239
263
|
var sources = tmp_0;
|
|
240
|
-
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.
|
|
241
|
-
var
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
264
|
+
var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.w25(this.r4c()), new EmitShared(this.z25()));
|
|
265
|
+
var tmp_6;
|
|
266
|
+
if (inputPath == null) {
|
|
267
|
+
tmp_6 = null;
|
|
268
|
+
} else {
|
|
269
|
+
// Inline function 'kotlin.let' call
|
|
270
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
271
|
+
// Inline function 'community.flock.wirespec.plugin.cli.Compile.run.<anonymous>' call
|
|
272
|
+
var tmp_7 = getOutPutPath(inputPath, this.s4c());
|
|
273
|
+
tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).n2j_1);
|
|
274
|
+
}
|
|
275
|
+
var outputDir = tmp_6;
|
|
245
276
|
// Inline function 'kotlin.let' call
|
|
246
|
-
this.
|
|
277
|
+
var tmp_8 = this.t4c(outputDir);
|
|
278
|
+
var this_1 = new CompilerArguments(sources, emitters, tmp_8, Compile$run$handleError$ref(), Companion_instance_0.w25(this.r4c()), new Logger(this.v4c(this.u4c())), this.z25(), this.w4c());
|
|
279
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
280
|
+
this.n4b_1(this_1);
|
|
247
281
|
};
|
|
248
282
|
function _get_format__qlarck($this) {
|
|
249
|
-
return $this.
|
|
283
|
+
return $this.v4d_1.x47($this, format$factory_0());
|
|
284
|
+
}
|
|
285
|
+
function _get_stdin__b8xnlj_0($this) {
|
|
286
|
+
return $this.w4d_1.x47($this, stdin$factory_2());
|
|
250
287
|
}
|
|
251
288
|
function _get_languages__ojonze_0($this) {
|
|
252
|
-
return $this.
|
|
289
|
+
return $this.x4d_1.x47($this, languages$factory_2());
|
|
253
290
|
}
|
|
254
291
|
function run$handleError_0(p0) {
|
|
255
292
|
handleError(p0);
|
|
@@ -268,10 +305,6 @@ function handleError$ref_2() {
|
|
|
268
305
|
l.callableName = 'handleError';
|
|
269
306
|
return l;
|
|
270
307
|
}
|
|
271
|
-
function Convert$run$lambda(filePath, string) {
|
|
272
|
-
write(filePath, string);
|
|
273
|
-
return Unit_instance;
|
|
274
|
-
}
|
|
275
308
|
function Convert$run$handleError$ref() {
|
|
276
309
|
return function (p0) {
|
|
277
310
|
run$handleError_0(p0);
|
|
@@ -280,12 +313,12 @@ function Convert$run$handleError$ref() {
|
|
|
280
313
|
}
|
|
281
314
|
function Convert(converter) {
|
|
282
315
|
CommonOptions.call(this);
|
|
283
|
-
this.
|
|
316
|
+
this.u4d_1 = converter;
|
|
284
317
|
var tmp = this;
|
|
285
318
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
286
319
|
var this_0 = argument(this, VOID, 'Input format');
|
|
287
|
-
// Inline function 'kotlin.enumValues' call
|
|
288
320
|
// Inline function 'kotlin.collections.associateBy' call
|
|
321
|
+
// Inline function 'kotlin.enumValues' call
|
|
289
322
|
var this_1 = values();
|
|
290
323
|
var capacity = coerceAtLeast(mapCapacity(this_1.length), 16);
|
|
291
324
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -300,30 +333,48 @@ function Convert(converter) {
|
|
|
300
333
|
var tmp$ret$2 = element.q2_1;
|
|
301
334
|
destination.n2(tmp$ret$2, element);
|
|
302
335
|
}
|
|
303
|
-
tmp.
|
|
304
|
-
this.
|
|
336
|
+
tmp.v4d_1 = choice_0(this_0, destination, true).d47(this, format$factory());
|
|
337
|
+
this.w4d_1 = optional(argument(this, VOID, 'stdin')).d47(this, stdin$factory_1());
|
|
338
|
+
this.x4d_1 = multiple(choice(option(this, Options_Language_getInstance().s4b_1.slice(), 'Language'), Companion_instance_1.q2i(), VOID, true)).h48(this, languages$factory_1());
|
|
305
339
|
}
|
|
306
|
-
protoOf(Convert).
|
|
307
|
-
var tmp = getFullPath(this.
|
|
340
|
+
protoOf(Convert).l3y = function () {
|
|
341
|
+
var tmp = getFullPath(this.q4c());
|
|
308
342
|
var inputPath = or(tmp, handleError$ref_1());
|
|
309
343
|
var tmp_0;
|
|
310
344
|
if (inputPath == null) {
|
|
311
|
-
|
|
345
|
+
var tmp1_safe_receiver = _get_stdin__b8xnlj_0(this);
|
|
346
|
+
var tmp_1;
|
|
347
|
+
if (tmp1_safe_receiver == null) {
|
|
348
|
+
tmp_1 = null;
|
|
349
|
+
} else {
|
|
350
|
+
// Inline function 'kotlin.let' call
|
|
351
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
352
|
+
// Inline function 'community.flock.wirespec.plugin.cli.Convert.run.<anonymous>' call
|
|
353
|
+
tmp_1 = new Source(_Name___init__impl__o4q07e('stdin'), tmp1_safe_receiver);
|
|
354
|
+
}
|
|
355
|
+
var tmp2_elvis_lhs = tmp_1;
|
|
356
|
+
var tmp_2;
|
|
357
|
+
if (tmp2_elvis_lhs == null) {
|
|
358
|
+
throw new NoInputReceived();
|
|
359
|
+
} else {
|
|
360
|
+
tmp_2 = tmp2_elvis_lhs;
|
|
361
|
+
}
|
|
362
|
+
tmp_0 = tmp_2;
|
|
312
363
|
} else {
|
|
313
|
-
if (inputPath instanceof
|
|
364
|
+
if (inputPath instanceof ClassPath) {
|
|
314
365
|
throw new NoClasspathPossible();
|
|
315
366
|
} else {
|
|
316
367
|
if (inputPath instanceof DirectoryPath) {
|
|
317
368
|
throw new ConvertNeedsAFile();
|
|
318
369
|
} else {
|
|
319
370
|
if (inputPath instanceof FilePath) {
|
|
320
|
-
var
|
|
321
|
-
if (inputPath.
|
|
322
|
-
|
|
371
|
+
var tmp_3;
|
|
372
|
+
if (inputPath.s2j_1.r2_1 === 5) {
|
|
373
|
+
tmp_3 = new Source(inputPath.r2j_1, read(inputPath));
|
|
323
374
|
} else {
|
|
324
375
|
throw new JSONFileError();
|
|
325
376
|
}
|
|
326
|
-
tmp_0 =
|
|
377
|
+
tmp_0 = tmp_3;
|
|
327
378
|
} else {
|
|
328
379
|
noWhenBranchMatchedException();
|
|
329
380
|
}
|
|
@@ -331,46 +382,79 @@ protoOf(Convert).d3z = function () {
|
|
|
331
382
|
}
|
|
332
383
|
}
|
|
333
384
|
var source = tmp_0;
|
|
334
|
-
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.
|
|
335
|
-
var
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
385
|
+
var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.w25(this.r4c()), new EmitShared(this.z25()));
|
|
386
|
+
var tmp_4;
|
|
387
|
+
if (inputPath == null) {
|
|
388
|
+
tmp_4 = null;
|
|
389
|
+
} else {
|
|
390
|
+
// Inline function 'kotlin.let' call
|
|
391
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
392
|
+
// Inline function 'community.flock.wirespec.plugin.cli.Convert.run.<anonymous>' call
|
|
393
|
+
var tmp_5 = getOutPutPath(inputPath, this.s4c());
|
|
394
|
+
tmp_4 = new Directory(or(tmp_5, handleError$ref_2()).n2j_1);
|
|
395
|
+
}
|
|
396
|
+
var directory = tmp_4;
|
|
341
397
|
// Inline function 'kotlin.let' call
|
|
342
|
-
this
|
|
398
|
+
var tmp_6 = _get_format__qlarck(this);
|
|
399
|
+
var tmp_7 = nonEmptySetOf(source, []);
|
|
400
|
+
var tmp_8 = this.t4c(directory);
|
|
401
|
+
var this_0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, Convert$run$handleError$ref(), Companion_instance_0.w25(this.r4c()), new Logger(this.v4c(this.u4c())), this.z25(), this.w4c());
|
|
402
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
403
|
+
this.u4d_1(this_0);
|
|
343
404
|
};
|
|
405
|
+
function CommonOptions$writer$lambda($directory, this$0) {
|
|
406
|
+
return function (emittedList) {
|
|
407
|
+
var tmp0_iterator = emittedList.g();
|
|
408
|
+
while (tmp0_iterator.h()) {
|
|
409
|
+
var element = tmp0_iterator.i();
|
|
410
|
+
// Inline function 'community.flock.wirespec.plugin.cli.CommonOptions.writer.<anonymous>.<anonymous>' call
|
|
411
|
+
var tmp0_safe_receiver = $directory;
|
|
412
|
+
var tmp;
|
|
413
|
+
if (tmp0_safe_receiver == null) {
|
|
414
|
+
tmp = null;
|
|
415
|
+
} else {
|
|
416
|
+
// Inline function 'kotlin.let' call
|
|
417
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
418
|
+
write(Companion_instance_2.p2j(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.o2j_1) + '/' + element.h26_1), element.i26_1);
|
|
419
|
+
tmp = Unit_instance;
|
|
420
|
+
}
|
|
421
|
+
if (tmp == null) {
|
|
422
|
+
this$0.f3y(element.i26_1);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
return Unit_instance;
|
|
426
|
+
};
|
|
427
|
+
}
|
|
344
428
|
function CommonOptions() {
|
|
345
429
|
CliktCommand.call(this);
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
348
|
-
this.
|
|
349
|
-
this.
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
352
|
-
}
|
|
353
|
-
protoOf(CommonOptions).
|
|
354
|
-
return this.
|
|
430
|
+
this.k4c_1 = option(this, Options_Input_getInstance().s4b_1.slice(), 'Input').h48(this, input$factory());
|
|
431
|
+
this.l4c_1 = option(this, Options_Output_getInstance().s4b_1.slice(), 'Output').h48(this, output$factory());
|
|
432
|
+
this.m4c_1 = default_0(option(this, Options_PackageName_getInstance().s4b_1.slice(), 'Package name'), 'community.flock.wirespec.generated').h48(this, packageName$factory());
|
|
433
|
+
this.n4c_1 = default_0(option(this, Options_LogLevel_getInstance().s4b_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_ERROR_getInstance().toString()).h48(this, logLevel$factory());
|
|
434
|
+
this.o4c_1 = flag(option(this, Options_Shared_getInstance().s4b_1.slice(), 'Generate shared wirespec code'), [], false).h48(this, shared$factory());
|
|
435
|
+
this.p4c_1 = flag(option(this, Options_Strict_getInstance().s4b_1.slice(), 'Strict mode'), []).h48(this, strict$factory());
|
|
436
|
+
}
|
|
437
|
+
protoOf(CommonOptions).q4c = function () {
|
|
438
|
+
return this.k4c_1.x47(this, input$factory_0());
|
|
355
439
|
};
|
|
356
|
-
protoOf(CommonOptions).
|
|
357
|
-
return this.
|
|
440
|
+
protoOf(CommonOptions).s4c = function () {
|
|
441
|
+
return this.l4c_1.x47(this, output$factory_0());
|
|
358
442
|
};
|
|
359
|
-
protoOf(CommonOptions).
|
|
360
|
-
return this.
|
|
443
|
+
protoOf(CommonOptions).r4c = function () {
|
|
444
|
+
return this.m4c_1.x47(this, packageName$factory_0());
|
|
361
445
|
};
|
|
362
|
-
protoOf(CommonOptions).
|
|
363
|
-
return this.
|
|
446
|
+
protoOf(CommonOptions).u4c = function () {
|
|
447
|
+
return this.n4c_1.x47(this, logLevel$factory_0());
|
|
364
448
|
};
|
|
365
|
-
protoOf(CommonOptions).
|
|
366
|
-
return this.
|
|
449
|
+
protoOf(CommonOptions).z25 = function () {
|
|
450
|
+
return this.o4c_1.x47(this, shared$factory_0());
|
|
367
451
|
};
|
|
368
|
-
protoOf(CommonOptions).
|
|
369
|
-
return this.
|
|
452
|
+
protoOf(CommonOptions).w4c = function () {
|
|
453
|
+
return this.p4c_1.x47(this, strict$factory_0());
|
|
370
454
|
};
|
|
371
|
-
protoOf(CommonOptions).
|
|
372
|
-
// Inline function 'kotlin.text.trim' call
|
|
455
|
+
protoOf(CommonOptions).v4c = function (_this__u8e3s4) {
|
|
373
456
|
// Inline function 'kotlin.text.uppercase' call
|
|
457
|
+
// Inline function 'kotlin.text.trim' call
|
|
374
458
|
// Inline function 'kotlin.js.asDynamic' call
|
|
375
459
|
var tmp;
|
|
376
460
|
switch (toString(trim(isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE())).toUpperCase()) {
|
|
@@ -391,6 +475,9 @@ protoOf(CommonOptions).l4d = function (_this__u8e3s4) {
|
|
|
391
475
|
}
|
|
392
476
|
return tmp;
|
|
393
477
|
};
|
|
478
|
+
protoOf(CommonOptions).t4c = function (directory) {
|
|
479
|
+
return CommonOptions$writer$lambda(directory, this);
|
|
480
|
+
};
|
|
394
481
|
var Options_Input_instance;
|
|
395
482
|
var Options_Output_instance;
|
|
396
483
|
var Options_Language_instance;
|
|
@@ -413,7 +500,7 @@ function Options_initEntries() {
|
|
|
413
500
|
}
|
|
414
501
|
function Options(name, ordinal, flags) {
|
|
415
502
|
Enum.call(this, name, ordinal);
|
|
416
|
-
this.
|
|
503
|
+
this.s4b_1 = flags;
|
|
417
504
|
}
|
|
418
505
|
function handleError(string) {
|
|
419
506
|
throw new CliktError(string);
|
|
@@ -422,9 +509,9 @@ function toEmitters(_this__u8e3s4, packageName, emitShared) {
|
|
|
422
509
|
// Inline function 'kotlin.collections.map' call
|
|
423
510
|
// Inline function 'kotlin.collections.mapTo' call
|
|
424
511
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
|
|
425
|
-
var
|
|
426
|
-
while (
|
|
427
|
-
var item =
|
|
512
|
+
var tmp0_iterator = _this__u8e3s4.g();
|
|
513
|
+
while (tmp0_iterator.h()) {
|
|
514
|
+
var item = tmp0_iterator.i();
|
|
428
515
|
// Inline function 'community.flock.wirespec.plugin.cli.toEmitters.<anonymous>' call
|
|
429
516
|
var tmp;
|
|
430
517
|
switch (item.r2_1) {
|
|
@@ -494,11 +581,21 @@ function Options_Strict_getInstance() {
|
|
|
494
581
|
Options_initEntries();
|
|
495
582
|
return Options_Strict_instance;
|
|
496
583
|
}
|
|
584
|
+
function stdin$factory() {
|
|
585
|
+
return getPropertyCallableRef('stdin', 1, KProperty1, function (receiver) {
|
|
586
|
+
return _get_stdin__b8xnlj(receiver);
|
|
587
|
+
}, null);
|
|
588
|
+
}
|
|
497
589
|
function languages$factory() {
|
|
498
590
|
return getPropertyCallableRef('languages', 1, KProperty1, function (receiver) {
|
|
499
591
|
return _get_languages__ojonze(receiver);
|
|
500
592
|
}, null);
|
|
501
593
|
}
|
|
594
|
+
function stdin$factory_0() {
|
|
595
|
+
return getPropertyCallableRef('stdin', 1, KProperty1, function (receiver) {
|
|
596
|
+
return _get_stdin__b8xnlj(receiver);
|
|
597
|
+
}, null);
|
|
598
|
+
}
|
|
502
599
|
function languages$factory_0() {
|
|
503
600
|
return getPropertyCallableRef('languages', 1, KProperty1, function (receiver) {
|
|
504
601
|
return _get_languages__ojonze(receiver);
|
|
@@ -509,6 +606,11 @@ function format$factory() {
|
|
|
509
606
|
return _get_format__qlarck(receiver);
|
|
510
607
|
}, null);
|
|
511
608
|
}
|
|
609
|
+
function stdin$factory_1() {
|
|
610
|
+
return getPropertyCallableRef('stdin', 1, KProperty1, function (receiver) {
|
|
611
|
+
return _get_stdin__b8xnlj_0(receiver);
|
|
612
|
+
}, null);
|
|
613
|
+
}
|
|
512
614
|
function languages$factory_1() {
|
|
513
615
|
return getPropertyCallableRef('languages', 1, KProperty1, function (receiver) {
|
|
514
616
|
return _get_languages__ojonze_0(receiver);
|
|
@@ -519,6 +621,11 @@ function format$factory_0() {
|
|
|
519
621
|
return _get_format__qlarck(receiver);
|
|
520
622
|
}, null);
|
|
521
623
|
}
|
|
624
|
+
function stdin$factory_2() {
|
|
625
|
+
return getPropertyCallableRef('stdin', 1, KProperty1, function (receiver) {
|
|
626
|
+
return _get_stdin__b8xnlj_0(receiver);
|
|
627
|
+
}, null);
|
|
628
|
+
}
|
|
522
629
|
function languages$factory_2() {
|
|
523
630
|
return getPropertyCallableRef('languages', 1, KProperty1, function (receiver) {
|
|
524
631
|
return _get_languages__ojonze_0(receiver);
|
|
@@ -526,96 +633,93 @@ function languages$factory_2() {
|
|
|
526
633
|
}
|
|
527
634
|
function input$factory() {
|
|
528
635
|
return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
|
|
529
|
-
return receiver.
|
|
636
|
+
return receiver.q4c();
|
|
530
637
|
}, null);
|
|
531
638
|
}
|
|
532
639
|
function output$factory() {
|
|
533
640
|
return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
|
|
534
|
-
return receiver.
|
|
641
|
+
return receiver.s4c();
|
|
535
642
|
}, null);
|
|
536
643
|
}
|
|
537
644
|
function packageName$factory() {
|
|
538
645
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
539
|
-
return receiver.
|
|
646
|
+
return receiver.r4c();
|
|
540
647
|
}, null);
|
|
541
648
|
}
|
|
542
649
|
function logLevel$factory() {
|
|
543
650
|
return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
|
|
544
|
-
return receiver.
|
|
651
|
+
return receiver.u4c();
|
|
545
652
|
}, null);
|
|
546
653
|
}
|
|
547
654
|
function shared$factory() {
|
|
548
655
|
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
|
|
549
|
-
return receiver.
|
|
656
|
+
return receiver.z25();
|
|
550
657
|
}, null);
|
|
551
658
|
}
|
|
552
659
|
function strict$factory() {
|
|
553
660
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
554
|
-
return receiver.
|
|
661
|
+
return receiver.w4c();
|
|
555
662
|
}, null);
|
|
556
663
|
}
|
|
557
664
|
function input$factory_0() {
|
|
558
665
|
return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
|
|
559
|
-
return receiver.
|
|
666
|
+
return receiver.q4c();
|
|
560
667
|
}, null);
|
|
561
668
|
}
|
|
562
669
|
function output$factory_0() {
|
|
563
670
|
return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
|
|
564
|
-
return receiver.
|
|
671
|
+
return receiver.s4c();
|
|
565
672
|
}, null);
|
|
566
673
|
}
|
|
567
674
|
function packageName$factory_0() {
|
|
568
675
|
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
|
|
569
|
-
return receiver.
|
|
676
|
+
return receiver.r4c();
|
|
570
677
|
}, null);
|
|
571
678
|
}
|
|
572
679
|
function logLevel$factory_0() {
|
|
573
680
|
return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
|
|
574
|
-
return receiver.
|
|
681
|
+
return receiver.u4c();
|
|
575
682
|
}, null);
|
|
576
683
|
}
|
|
577
684
|
function shared$factory_0() {
|
|
578
685
|
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
|
|
579
|
-
return receiver.
|
|
686
|
+
return receiver.z25();
|
|
580
687
|
}, null);
|
|
581
688
|
}
|
|
582
689
|
function strict$factory_0() {
|
|
583
690
|
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
|
|
584
|
-
return receiver.
|
|
691
|
+
return receiver.w4c();
|
|
585
692
|
}, null);
|
|
586
693
|
}
|
|
587
694
|
function main(args) {
|
|
695
|
+
// Inline function 'kotlin.let' call
|
|
588
696
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
589
|
-
var tmp0 = numberRangeToNumber(0, 20);
|
|
590
697
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
698
|
+
var this_0 = until(0, 20);
|
|
591
699
|
var destination = ArrayList_init_$Create$_0();
|
|
592
700
|
// Inline function 'kotlin.collections.forEach' call
|
|
593
|
-
var inductionVariable =
|
|
594
|
-
var last =
|
|
701
|
+
var inductionVariable = this_0.d1_1;
|
|
702
|
+
var last = this_0.e1_1;
|
|
595
703
|
if (inductionVariable <= last)
|
|
596
704
|
do {
|
|
597
705
|
var element = inductionVariable;
|
|
598
706
|
inductionVariable = inductionVariable + 1 | 0;
|
|
599
707
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
600
|
-
// Inline function 'community.flock.wirespec.plugin.cli.main.stub_for_inlining' call
|
|
601
708
|
var p0 = element;
|
|
602
709
|
var tmp0_safe_receiver = orNull(args, p0);
|
|
603
710
|
if (tmp0_safe_receiver == null)
|
|
604
711
|
null;
|
|
605
712
|
else {
|
|
606
713
|
// Inline function 'kotlin.let' call
|
|
607
|
-
// Inline function 'kotlin.
|
|
714
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
608
715
|
destination.e(tmp0_safe_receiver);
|
|
609
716
|
}
|
|
610
717
|
}
|
|
611
718
|
while (!(element === last));
|
|
612
|
-
// Inline function 'kotlin.
|
|
613
|
-
var
|
|
614
|
-
var tmp = Companion_instance_3;
|
|
719
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
720
|
+
var tmp = Companion_instance_4;
|
|
615
721
|
var tmp_0 = compile$ref();
|
|
616
|
-
|
|
617
|
-
// Inline function 'community.flock.wirespec.plugin.cli.main.stub_for_inlining' call
|
|
618
|
-
tmp.h4b(tmp_0, convert$ref()).c3z(tmp4);
|
|
722
|
+
tmp.p4a(tmp_0, convert$ref()).k3y(destination);
|
|
619
723
|
}
|
|
620
724
|
function compile$ref() {
|
|
621
725
|
var l = function (p0) {
|
|
@@ -637,55 +741,53 @@ function cli(args) {
|
|
|
637
741
|
main(args);
|
|
638
742
|
}
|
|
639
743
|
function parser(source) {
|
|
744
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
745
|
+
// Inline function 'kotlin.collections.map' call
|
|
746
|
+
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
640
747
|
// Inline function 'arrow.core.getOrElse' call
|
|
641
748
|
// Inline function 'kotlin.contracts.contract' call
|
|
642
749
|
// Inline function 'arrow.core.Either.fold' call
|
|
643
|
-
var this_0 = parse(new parser$1(), nonEmptyListOf(new ModuleContent('', source), []));
|
|
750
|
+
var this_0 = parse(new parser$this$this$this$this$1(), nonEmptyListOf(new ModuleContent('', source), []));
|
|
644
751
|
// Inline function 'kotlin.contracts.contract' call
|
|
645
752
|
var tmp;
|
|
646
753
|
if (this_0 instanceof Right) {
|
|
647
|
-
// Inline function 'arrow.core.getOrElse.stub_for_inlining' call
|
|
648
754
|
// Inline function 'arrow.core.identity' call
|
|
649
|
-
|
|
755
|
+
// Inline function 'arrow.core.identity' call
|
|
756
|
+
tmp = this_0.dk_1;
|
|
650
757
|
} else {
|
|
651
758
|
if (this_0 instanceof Left) {
|
|
652
|
-
var it = this_0.
|
|
759
|
+
var it = this_0.xj_1;
|
|
653
760
|
var message = 'Cannot parse source: ' + joinToString(it, VOID, VOID, VOID, VOID, VOID, parser$lambda);
|
|
654
761
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
655
762
|
} else {
|
|
656
763
|
noWhenBranchMatchedException();
|
|
657
764
|
}
|
|
658
765
|
}
|
|
659
|
-
|
|
660
|
-
var
|
|
661
|
-
// Inline function 'community.flock.wirespec.plugin.cli.parser.stub_for_inlining' call
|
|
662
|
-
var tmp_0 = this_1.uk_1.d27_1.sk();
|
|
766
|
+
var this_1 = tmp.e29_1;
|
|
767
|
+
var tmp_0 = this_1.ik_1.s26_1.gk();
|
|
663
768
|
// Inline function 'kotlin.collections.flatMap' call
|
|
664
|
-
var tmp0 = this_1.vk_1;
|
|
665
769
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
770
|
+
var this_2 = this_1.jk_1;
|
|
666
771
|
var destination = ArrayList_init_$Create$_0();
|
|
667
|
-
var
|
|
668
|
-
while (
|
|
669
|
-
var element =
|
|
670
|
-
|
|
671
|
-
var list = element.d27_1;
|
|
772
|
+
var tmp0_iterator = this_2.g();
|
|
773
|
+
while (tmp0_iterator.h()) {
|
|
774
|
+
var element = tmp0_iterator.i();
|
|
775
|
+
var list = element.s26_1;
|
|
672
776
|
addAll(destination, list);
|
|
673
777
|
}
|
|
674
|
-
|
|
675
|
-
var this_2 = tmp_0.zk(destination).yk();
|
|
778
|
+
var this_3 = tmp_0.nk(destination).mk();
|
|
676
779
|
// Inline function 'kotlin.collections.mapTo' call
|
|
677
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(
|
|
678
|
-
var
|
|
679
|
-
while (
|
|
680
|
-
var item =
|
|
780
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
781
|
+
var tmp0_iterator_0 = this_3.g();
|
|
782
|
+
while (tmp0_iterator_0.h()) {
|
|
783
|
+
var item = tmp0_iterator_0.i();
|
|
681
784
|
// Inline function 'community.flock.wirespec.plugin.cli.parser.<anonymous>' call
|
|
682
785
|
var tmp$ret$9 = produce(item);
|
|
683
786
|
destination_0.e(tmp$ret$9);
|
|
684
787
|
}
|
|
685
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
686
788
|
return copyToArray(destination_0);
|
|
687
789
|
}
|
|
688
|
-
function parser$1() {
|
|
790
|
+
function parser$this$this$this$this$1() {
|
|
689
791
|
}
|
|
690
792
|
function parser$lambda(e) {
|
|
691
793
|
return e.r1();
|
|
@@ -717,7 +819,7 @@ function orNull(_this__u8e3s4, idx) {
|
|
|
717
819
|
}
|
|
718
820
|
tmp = tmp_0;
|
|
719
821
|
}
|
|
720
|
-
return tmp.
|
|
822
|
+
return tmp.ck();
|
|
721
823
|
}
|
|
722
824
|
var properties_initialized_CommandLineArguments_kt_ekn5uh;
|
|
723
825
|
function _init_properties_CommandLineArguments_kt__b5v7hl() {
|
|
@@ -728,11 +830,11 @@ function _init_properties_CommandLineArguments_kt__b5v7hl() {
|
|
|
728
830
|
}
|
|
729
831
|
}
|
|
730
832
|
//region block: post-declaration
|
|
731
|
-
protoOf(parser$1).
|
|
732
|
-
protoOf(parser$1).
|
|
833
|
+
protoOf(parser$this$this$this$this$1).z22 = get_spec;
|
|
834
|
+
protoOf(parser$this$this$this$this$1).o22 = get_logger;
|
|
733
835
|
//endregion
|
|
734
836
|
//region block: init
|
|
735
|
-
|
|
837
|
+
Companion_instance_4 = new Companion();
|
|
736
838
|
//endregion
|
|
737
839
|
//region block: exports
|
|
738
840
|
export {
|