@flock/wirespec 0.15.3 → 0.15.5
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 +12 -12
- package/arrow-arrow-atomic.mjs.map +1 -1
- package/arrow-arrow-core.mjs +107 -107
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt.mjs +3314 -3654
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +578 -489
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +2922 -2894
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +5055 -5051
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1934 -1929
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +578 -628
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1897 -1875
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1575 -1574
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/markdown.mjs +6756 -0
- package/markdown.mjs.map +1 -0
- package/mordant-mordant.mjs +3762 -2059
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +4 -2
- package/wirespec-src-compiler-core.mjs +2464 -2346
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +488 -482
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +556 -555
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +1382 -1314
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +235 -233
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +150 -150
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +115 -119
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +57 -52
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +0 -314
- package/clikt-clikt-mordant.mjs.map +0 -1
- package/mordant-mordant-omnibus.mjs +0 -4
- package/mordant-mordant-omnibus.mjs.map +0 -1
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
protoOf180f3jzyo7rfj as protoOf,
|
|
4
4
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
5
5
|
enumEntries20mr21zbe3az4 as enumEntries,
|
|
6
|
-
|
|
6
|
+
Unit_instanceat14thlj150z as Unit_instance,
|
|
7
7
|
Enum3alwj03lh1n41 as Enum,
|
|
8
8
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
9
9
|
VOID7hggqo3abtya as VOID,
|
|
@@ -55,13 +55,13 @@ import {
|
|
|
55
55
|
get_spec3cnzsbb1ufwje as get_spec,
|
|
56
56
|
HasLanguageSpec1fo5x3q6dcifj as HasLanguageSpec,
|
|
57
57
|
get_entries4pic4pnz9ji1 as get_entries,
|
|
58
|
-
|
|
58
|
+
FileExtension_Wirespec_getInstance260g74sz3zqjq as FileExtension_Wirespec_getInstance,
|
|
59
59
|
} from './wirespec-src-compiler-core.mjs';
|
|
60
60
|
import {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
OpenAPIV2Parser_instance3853tvzrce12g as OpenAPIV2Parser_instance,
|
|
62
|
+
OpenAPIV3Parser_instance23izvpvl4ad2l as OpenAPIV3Parser_instance,
|
|
63
63
|
} from './wirespec-src-converter-openapi.mjs';
|
|
64
|
-
import {
|
|
64
|
+
import { AvroParser_instance3sg62isr226zb as AvroParser_instance } from './wirespec-src-converter-avro.mjs';
|
|
65
65
|
import {
|
|
66
66
|
Path21qufdfgaayly as Path,
|
|
67
67
|
get_SystemFileSystemcqw7gp4jhbc7 as get_SystemFileSystem,
|
|
@@ -148,18 +148,18 @@ var Language_OpenAPIV2_instance;
|
|
|
148
148
|
var Language_OpenAPIV3_instance;
|
|
149
149
|
function Companion_0() {
|
|
150
150
|
}
|
|
151
|
-
protoOf(Companion_0).
|
|
151
|
+
protoOf(Companion_0).q2i = function () {
|
|
152
152
|
// Inline function 'kotlin.collections.associateBy' call
|
|
153
153
|
var this_0 = get_entries_1();
|
|
154
154
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
155
155
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
156
156
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
157
|
-
var
|
|
158
|
-
while (
|
|
159
|
-
var element =
|
|
157
|
+
var tmp0_iterator = this_0.g();
|
|
158
|
+
while (tmp0_iterator.h()) {
|
|
159
|
+
var element = tmp0_iterator.i();
|
|
160
160
|
// Inline function 'community.flock.wirespec.plugin.Companion.toMap.<anonymous>' call
|
|
161
|
-
var tmp$ret$0 = element.
|
|
162
|
-
destination.
|
|
161
|
+
var tmp$ret$0 = element.q2_1;
|
|
162
|
+
destination.n2(tmp$ret$0, element);
|
|
163
163
|
}
|
|
164
164
|
return destination;
|
|
165
165
|
};
|
|
@@ -225,21 +225,22 @@ function Language_OpenAPIV3_getInstance() {
|
|
|
225
225
|
}
|
|
226
226
|
function compile_0(arguments_0) {
|
|
227
227
|
var ctx = new compile$ctx$1(arguments_0);
|
|
228
|
+
// Inline function 'arrow.core.Either.fold' call
|
|
229
|
+
// Inline function 'arrow.core.Either.mapLeft' call
|
|
228
230
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
229
|
-
var this_0 = arguments_0.
|
|
231
|
+
var this_0 = arguments_0.r2i_1;
|
|
230
232
|
// Inline function 'kotlin.collections.map' call
|
|
231
233
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
232
234
|
// Inline function 'kotlin.collections.mapTo' call
|
|
233
235
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
234
|
-
var
|
|
235
|
-
while (
|
|
236
|
-
var item =
|
|
236
|
+
var tmp0_iterator = this_1.g();
|
|
237
|
+
while (tmp0_iterator.h()) {
|
|
238
|
+
var item = tmp0_iterator.i();
|
|
237
239
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
238
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
240
|
+
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.z2i_1), item.a2j_1);
|
|
239
241
|
destination.e(tmp$ret$0);
|
|
240
242
|
}
|
|
241
243
|
var tmp$ret$3 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
242
|
-
// Inline function 'arrow.core.Either.mapLeft' call
|
|
243
244
|
// Inline function 'kotlin.contracts.contract' call
|
|
244
245
|
// Inline function 'arrow.core.Either.fold' call
|
|
245
246
|
var this_2 = compile(ctx, tmp$ret$3);
|
|
@@ -247,25 +248,23 @@ function compile_0(arguments_0) {
|
|
|
247
248
|
var tmp;
|
|
248
249
|
if (this_2 instanceof Right) {
|
|
249
250
|
// Inline function 'arrow.core.Either.mapLeft.<anonymous>' call
|
|
250
|
-
var it = this_2.
|
|
251
|
+
var it = this_2.dk_1;
|
|
251
252
|
tmp = new Right(it);
|
|
252
253
|
} else {
|
|
253
254
|
if (this_2 instanceof Left) {
|
|
254
255
|
// Inline function 'arrow.core.Either.mapLeft.<anonymous>' call
|
|
255
256
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
256
257
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
257
|
-
var this_3 = this_2.
|
|
258
|
-
|
|
259
|
-
var tmp_0 = this_3.zl_1.n1();
|
|
258
|
+
var this_3 = this_2.xj_1;
|
|
259
|
+
var tmp_0 = this_3.ik_1.r1();
|
|
260
260
|
// Inline function 'kotlin.collections.map' call
|
|
261
|
-
var this_4 = this_3.
|
|
261
|
+
var this_4 = this_3.jk_1;
|
|
262
262
|
// Inline function 'kotlin.collections.mapTo' call
|
|
263
263
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
264
|
-
var
|
|
265
|
-
while (
|
|
266
|
-
var item_0 =
|
|
267
|
-
|
|
268
|
-
var tmp$ret$6 = item_0.n1();
|
|
264
|
+
var tmp0_iterator_0 = this_4.g();
|
|
265
|
+
while (tmp0_iterator_0.h()) {
|
|
266
|
+
var item_0 = tmp0_iterator_0.i();
|
|
267
|
+
var tmp$ret$6 = item_0.r1();
|
|
269
268
|
destination_0.e(tmp$ret$6);
|
|
270
269
|
}
|
|
271
270
|
var tmp$ret$10 = new NonEmptyList(tmp_0, destination_0);
|
|
@@ -274,18 +273,16 @@ function compile_0(arguments_0) {
|
|
|
274
273
|
noWhenBranchMatchedException();
|
|
275
274
|
}
|
|
276
275
|
}
|
|
277
|
-
// Inline function 'arrow.core.Either.fold' call
|
|
278
276
|
var this_5 = tmp;
|
|
279
277
|
// Inline function 'kotlin.contracts.contract' call
|
|
278
|
+
var tmp_1;
|
|
280
279
|
if (this_5 instanceof Right) {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
arguments_0.k2k_1(it_0);
|
|
280
|
+
var it_0 = this_5.dk_1;
|
|
281
|
+
tmp_1 = arguments_0.t2i_1(it_0);
|
|
284
282
|
} else {
|
|
285
283
|
if (this_5 instanceof Left) {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
arguments_0.l2k_1(joinToString(it_1));
|
|
284
|
+
var it_1 = this_5.xj_1;
|
|
285
|
+
tmp_1 = arguments_0.u2i_1(joinToString(it_1));
|
|
289
286
|
} else {
|
|
290
287
|
noWhenBranchMatchedException();
|
|
291
288
|
}
|
|
@@ -293,7 +290,7 @@ function compile_0(arguments_0) {
|
|
|
293
290
|
}
|
|
294
291
|
function convert(arguments_0) {
|
|
295
292
|
var tmp;
|
|
296
|
-
switch (arguments_0.
|
|
293
|
+
switch (arguments_0.b2j_1.r2_1) {
|
|
297
294
|
case 0:
|
|
298
295
|
tmp = OpenAPIV2Parser_instance;
|
|
299
296
|
break;
|
|
@@ -308,113 +305,114 @@ function convert(arguments_0) {
|
|
|
308
305
|
break;
|
|
309
306
|
}
|
|
310
307
|
var parser = tmp;
|
|
308
|
+
// Inline function 'kotlin.let' call
|
|
309
|
+
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
310
|
+
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
311
311
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
312
|
-
var this_0 = arguments_0.
|
|
312
|
+
var this_0 = arguments_0.c2j_1;
|
|
313
313
|
// Inline function 'kotlin.collections.map' call
|
|
314
314
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
315
315
|
// Inline function 'kotlin.collections.mapTo' call
|
|
316
316
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
317
|
-
var
|
|
318
|
-
while (
|
|
319
|
-
var item =
|
|
317
|
+
var tmp0_iterator = this_1.g();
|
|
318
|
+
while (tmp0_iterator.h()) {
|
|
319
|
+
var item = tmp0_iterator.i();
|
|
320
320
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
321
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
321
|
+
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.z2i_1), item.a2j_1);
|
|
322
322
|
destination.e(tmp$ret$0);
|
|
323
323
|
}
|
|
324
|
-
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
325
324
|
var this_2 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
326
325
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
327
|
-
var moduleContent = this_2.
|
|
328
|
-
var tmp_0 = parser.
|
|
326
|
+
var moduleContent = this_2.ik_1;
|
|
327
|
+
var tmp_0 = parser.d2e(moduleContent, arguments_0.j2j_1);
|
|
329
328
|
// Inline function 'kotlin.collections.map' call
|
|
330
|
-
var this_3 = this_2.
|
|
329
|
+
var this_3 = this_2.jk_1;
|
|
331
330
|
// Inline function 'kotlin.collections.mapTo' call
|
|
332
331
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
333
|
-
var
|
|
334
|
-
while (
|
|
335
|
-
var item_0 =
|
|
332
|
+
var tmp0_iterator_0 = this_3.g();
|
|
333
|
+
while (tmp0_iterator_0.h()) {
|
|
334
|
+
var item_0 = tmp0_iterator_0.i();
|
|
336
335
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
337
|
-
var tmp$ret$5 = parser.
|
|
336
|
+
var tmp$ret$5 = parser.d2e(item_0, arguments_0.j2j_1);
|
|
338
337
|
destination_0.e(tmp$ret$5);
|
|
339
338
|
}
|
|
340
|
-
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
341
339
|
var this_4 = new NonEmptyList(tmp_0, destination_0);
|
|
342
340
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
343
|
-
var ast = this_4.
|
|
341
|
+
var ast = this_4.ik_1;
|
|
344
342
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
345
|
-
var this_5 = arguments_0.
|
|
343
|
+
var this_5 = arguments_0.d2j_1;
|
|
346
344
|
// Inline function 'kotlin.collections.flatMap' call
|
|
347
|
-
var tmp0 = _NonEmptySet___get_elements__impl__g09gj9(this_5);
|
|
348
345
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
346
|
+
var this_6 = _NonEmptySet___get_elements__impl__g09gj9(this_5);
|
|
349
347
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
350
|
-
var
|
|
351
|
-
while (
|
|
352
|
-
var element =
|
|
348
|
+
var tmp0_iterator_1 = this_6.g();
|
|
349
|
+
while (tmp0_iterator_1.h()) {
|
|
350
|
+
var element = tmp0_iterator_1.i();
|
|
353
351
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
354
|
-
var list = element.
|
|
352
|
+
var list = element.b23(ast, arguments_0.h2j_1);
|
|
355
353
|
addAll(destination_1, list);
|
|
356
354
|
}
|
|
357
|
-
var tmp_1 = ensureNotNull(toNonEmptyListOrNull(destination_1)).
|
|
355
|
+
var tmp_1 = ensureNotNull(toNonEmptyListOrNull(destination_1)).gk();
|
|
358
356
|
// Inline function 'kotlin.collections.flatMap' call
|
|
359
|
-
var tmp0_0 = this_4.am_1;
|
|
360
357
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
358
|
+
var this_7 = this_4.jk_1;
|
|
361
359
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
362
|
-
var
|
|
363
|
-
while (
|
|
364
|
-
var element_0 =
|
|
360
|
+
var tmp0_iterator_2 = this_7.g();
|
|
361
|
+
while (tmp0_iterator_2.h()) {
|
|
362
|
+
var element_0 = tmp0_iterator_2.i();
|
|
365
363
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
366
364
|
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
367
|
-
var
|
|
365
|
+
var this_8 = arguments_0.d2j_1;
|
|
368
366
|
// Inline function 'kotlin.collections.flatMap' call
|
|
369
|
-
var tmp0_1 = _NonEmptySet___get_elements__impl__g09gj9(this_6);
|
|
370
367
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
368
|
+
var this_9 = _NonEmptySet___get_elements__impl__g09gj9(this_8);
|
|
371
369
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
372
|
-
var
|
|
373
|
-
while (
|
|
374
|
-
var element_1 =
|
|
370
|
+
var tmp0_iterator_3 = this_9.g();
|
|
371
|
+
while (tmp0_iterator_3.h()) {
|
|
372
|
+
var element_1 = tmp0_iterator_3.i();
|
|
375
373
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
376
|
-
var list_0 = element_1.
|
|
374
|
+
var list_0 = element_1.b23(element_0, arguments_0.h2j_1);
|
|
377
375
|
addAll(destination_3, list_0);
|
|
378
376
|
}
|
|
379
377
|
var list_1 = ensureNotNull(toNonEmptyListOrNull(destination_3));
|
|
380
378
|
addAll(destination_2, list_1);
|
|
381
379
|
}
|
|
382
|
-
var
|
|
383
|
-
// Inline function 'kotlin.
|
|
384
|
-
arguments_0.
|
|
380
|
+
var this_10 = tmp_1.nk(destination_2);
|
|
381
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
382
|
+
arguments_0.e2j_1(this_10);
|
|
385
383
|
}
|
|
386
384
|
function compile$ctx$1($arguments) {
|
|
387
|
-
this.
|
|
388
|
-
this.
|
|
385
|
+
this.k2j_1 = $arguments.w2i_1;
|
|
386
|
+
this.l2j_1 = $arguments.s2i_1;
|
|
389
387
|
}
|
|
390
|
-
protoOf(compile$ctx$1).
|
|
391
|
-
return this.
|
|
388
|
+
protoOf(compile$ctx$1).o22 = function () {
|
|
389
|
+
return this.k2j_1;
|
|
392
390
|
};
|
|
393
|
-
protoOf(compile$ctx$1).
|
|
394
|
-
return this.
|
|
391
|
+
protoOf(compile$ctx$1).a23 = function () {
|
|
392
|
+
return this.l2j_1;
|
|
395
393
|
};
|
|
396
394
|
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
403
|
-
this.
|
|
404
|
-
this.
|
|
395
|
+
this.r2i_1 = input;
|
|
396
|
+
this.s2i_1 = emitters;
|
|
397
|
+
this.t2i_1 = writer;
|
|
398
|
+
this.u2i_1 = error;
|
|
399
|
+
this.v2i_1 = packageName;
|
|
400
|
+
this.w2i_1 = logger;
|
|
401
|
+
this.x2i_1 = shared;
|
|
402
|
+
this.y2i_1 = strict;
|
|
405
403
|
}
|
|
406
404
|
protoOf(CompilerArguments).toString = function () {
|
|
407
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
405
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.r2i_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.s2i_1) + ', writer=' + toString(this.t2i_1) + ', error=' + toString(this.u2i_1) + ', packageName=' + this.v2i_1.toString() + ', logger=' + toString(this.w2i_1) + ', shared=' + this.x2i_1 + ', strict=' + this.y2i_1 + ')';
|
|
408
406
|
};
|
|
409
407
|
protoOf(CompilerArguments).hashCode = function () {
|
|
410
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
411
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
412
|
-
result = imul(result, 31) + hashCode(this.
|
|
413
|
-
result = imul(result, 31) + hashCode(this.
|
|
414
|
-
result = imul(result, 31) + hashCode(this.
|
|
415
|
-
result = imul(result, 31) + hashCode(this.
|
|
416
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
417
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
408
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.r2i_1);
|
|
409
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.s2i_1) | 0;
|
|
410
|
+
result = imul(result, 31) + hashCode(this.t2i_1) | 0;
|
|
411
|
+
result = imul(result, 31) + hashCode(this.u2i_1) | 0;
|
|
412
|
+
result = imul(result, 31) + hashCode(this.v2i_1) | 0;
|
|
413
|
+
result = imul(result, 31) + hashCode(this.w2i_1) | 0;
|
|
414
|
+
result = imul(result, 31) + getBooleanHashCode(this.x2i_1) | 0;
|
|
415
|
+
result = imul(result, 31) + getBooleanHashCode(this.y2i_1) | 0;
|
|
418
416
|
return result;
|
|
419
417
|
};
|
|
420
418
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -423,48 +421,48 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
423
421
|
if (!(other instanceof CompilerArguments))
|
|
424
422
|
return false;
|
|
425
423
|
var tmp0_other_with_cast = other instanceof CompilerArguments ? other : THROW_CCE();
|
|
426
|
-
if (!equals(new NonEmptySet(this.
|
|
424
|
+
if (!equals(new NonEmptySet(this.r2i_1), new NonEmptySet(tmp0_other_with_cast.r2i_1)))
|
|
427
425
|
return false;
|
|
428
|
-
if (!equals(new NonEmptySet(this.
|
|
426
|
+
if (!equals(new NonEmptySet(this.s2i_1), new NonEmptySet(tmp0_other_with_cast.s2i_1)))
|
|
429
427
|
return false;
|
|
430
|
-
if (!equals(this.
|
|
428
|
+
if (!equals(this.t2i_1, tmp0_other_with_cast.t2i_1))
|
|
431
429
|
return false;
|
|
432
|
-
if (!equals(this.
|
|
430
|
+
if (!equals(this.u2i_1, tmp0_other_with_cast.u2i_1))
|
|
433
431
|
return false;
|
|
434
|
-
if (!equals(this.
|
|
432
|
+
if (!equals(this.v2i_1, tmp0_other_with_cast.v2i_1))
|
|
435
433
|
return false;
|
|
436
|
-
if (!equals(this.
|
|
434
|
+
if (!equals(this.w2i_1, tmp0_other_with_cast.w2i_1))
|
|
437
435
|
return false;
|
|
438
|
-
if (!(this.
|
|
436
|
+
if (!(this.x2i_1 === tmp0_other_with_cast.x2i_1))
|
|
439
437
|
return false;
|
|
440
|
-
if (!(this.
|
|
438
|
+
if (!(this.y2i_1 === tmp0_other_with_cast.y2i_1))
|
|
441
439
|
return false;
|
|
442
440
|
return true;
|
|
443
441
|
};
|
|
444
442
|
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
445
|
-
this.
|
|
446
|
-
this.
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
452
|
-
this.
|
|
453
|
-
this.
|
|
443
|
+
this.b2j_1 = format;
|
|
444
|
+
this.c2j_1 = input;
|
|
445
|
+
this.d2j_1 = emitters;
|
|
446
|
+
this.e2j_1 = writer;
|
|
447
|
+
this.f2j_1 = error;
|
|
448
|
+
this.g2j_1 = packageName;
|
|
449
|
+
this.h2j_1 = logger;
|
|
450
|
+
this.i2j_1 = shared;
|
|
451
|
+
this.j2j_1 = strict;
|
|
454
452
|
}
|
|
455
453
|
protoOf(ConverterArguments).toString = function () {
|
|
456
|
-
return 'ConverterArguments(format=' + this.
|
|
454
|
+
return 'ConverterArguments(format=' + this.b2j_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.c2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.d2j_1) + ', writer=' + toString(this.e2j_1) + ', error=' + toString(this.f2j_1) + ', packageName=' + this.g2j_1.toString() + ', logger=' + toString(this.h2j_1) + ', shared=' + this.i2j_1 + ', strict=' + this.j2j_1 + ')';
|
|
457
455
|
};
|
|
458
456
|
protoOf(ConverterArguments).hashCode = function () {
|
|
459
|
-
var result = this.
|
|
460
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
461
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
462
|
-
result = imul(result, 31) + hashCode(this.
|
|
463
|
-
result = imul(result, 31) + hashCode(this.
|
|
464
|
-
result = imul(result, 31) + hashCode(this.
|
|
465
|
-
result = imul(result, 31) + hashCode(this.
|
|
466
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
467
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
457
|
+
var result = this.b2j_1.hashCode();
|
|
458
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.c2j_1) | 0;
|
|
459
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.d2j_1) | 0;
|
|
460
|
+
result = imul(result, 31) + hashCode(this.e2j_1) | 0;
|
|
461
|
+
result = imul(result, 31) + hashCode(this.f2j_1) | 0;
|
|
462
|
+
result = imul(result, 31) + hashCode(this.g2j_1) | 0;
|
|
463
|
+
result = imul(result, 31) + hashCode(this.h2j_1) | 0;
|
|
464
|
+
result = imul(result, 31) + getBooleanHashCode(this.i2j_1) | 0;
|
|
465
|
+
result = imul(result, 31) + getBooleanHashCode(this.j2j_1) | 0;
|
|
468
466
|
return result;
|
|
469
467
|
};
|
|
470
468
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -473,36 +471,36 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
473
471
|
if (!(other instanceof ConverterArguments))
|
|
474
472
|
return false;
|
|
475
473
|
var tmp0_other_with_cast = other instanceof ConverterArguments ? other : THROW_CCE();
|
|
476
|
-
if (!this.
|
|
474
|
+
if (!this.b2j_1.equals(tmp0_other_with_cast.b2j_1))
|
|
477
475
|
return false;
|
|
478
|
-
if (!equals(new NonEmptySet(this.
|
|
476
|
+
if (!equals(new NonEmptySet(this.c2j_1), new NonEmptySet(tmp0_other_with_cast.c2j_1)))
|
|
479
477
|
return false;
|
|
480
|
-
if (!equals(new NonEmptySet(this.
|
|
478
|
+
if (!equals(new NonEmptySet(this.d2j_1), new NonEmptySet(tmp0_other_with_cast.d2j_1)))
|
|
481
479
|
return false;
|
|
482
|
-
if (!equals(this.
|
|
480
|
+
if (!equals(this.e2j_1, tmp0_other_with_cast.e2j_1))
|
|
483
481
|
return false;
|
|
484
|
-
if (!equals(this.
|
|
482
|
+
if (!equals(this.f2j_1, tmp0_other_with_cast.f2j_1))
|
|
485
483
|
return false;
|
|
486
|
-
if (!equals(this.
|
|
484
|
+
if (!equals(this.g2j_1, tmp0_other_with_cast.g2j_1))
|
|
487
485
|
return false;
|
|
488
|
-
if (!equals(this.
|
|
486
|
+
if (!equals(this.h2j_1, tmp0_other_with_cast.h2j_1))
|
|
489
487
|
return false;
|
|
490
|
-
if (!(this.
|
|
488
|
+
if (!(this.i2j_1 === tmp0_other_with_cast.i2j_1))
|
|
491
489
|
return false;
|
|
492
|
-
if (!(this.
|
|
490
|
+
if (!(this.j2j_1 === tmp0_other_with_cast.j2j_1))
|
|
493
491
|
return false;
|
|
494
492
|
return true;
|
|
495
493
|
};
|
|
496
494
|
function Source(name, content) {
|
|
497
|
-
this.
|
|
498
|
-
this.
|
|
495
|
+
this.z2i_1 = name;
|
|
496
|
+
this.a2j_1 = content;
|
|
499
497
|
}
|
|
500
498
|
protoOf(Source).toString = function () {
|
|
501
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
499
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.z2i_1) + ', content=' + this.a2j_1 + ')';
|
|
502
500
|
};
|
|
503
501
|
protoOf(Source).hashCode = function () {
|
|
504
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
505
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
502
|
+
var result = Name__hashCode_impl_fpc861(this.z2i_1);
|
|
503
|
+
result = imul(result, 31) + getStringHashCode(this.a2j_1) | 0;
|
|
506
504
|
return result;
|
|
507
505
|
};
|
|
508
506
|
protoOf(Source).equals = function (other) {
|
|
@@ -511,9 +509,9 @@ protoOf(Source).equals = function (other) {
|
|
|
511
509
|
if (!(other instanceof Source))
|
|
512
510
|
return false;
|
|
513
511
|
var tmp0_other_with_cast = other instanceof Source ? other : THROW_CCE();
|
|
514
|
-
if (!(this.
|
|
512
|
+
if (!(this.z2i_1 === tmp0_other_with_cast.z2i_1))
|
|
515
513
|
return false;
|
|
516
|
-
if (!(this.
|
|
514
|
+
if (!(this.a2j_1 === tmp0_other_with_cast.a2j_1))
|
|
517
515
|
return false;
|
|
518
516
|
return true;
|
|
519
517
|
};
|
|
@@ -544,21 +542,21 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
544
542
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
545
543
|
if (!(other instanceof ClassPath))
|
|
546
544
|
return false;
|
|
547
|
-
if (!($this === (other instanceof ClassPath ? other.
|
|
545
|
+
if (!($this === (other instanceof ClassPath ? other.m2j_1 : THROW_CCE())))
|
|
548
546
|
return false;
|
|
549
547
|
return true;
|
|
550
548
|
}
|
|
551
549
|
function ClassPath(value) {
|
|
552
|
-
this.
|
|
550
|
+
this.m2j_1 = value;
|
|
553
551
|
}
|
|
554
552
|
protoOf(ClassPath).toString = function () {
|
|
555
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
553
|
+
return ClassPath__toString_impl_y3ovr8(this.m2j_1);
|
|
556
554
|
};
|
|
557
555
|
protoOf(ClassPath).hashCode = function () {
|
|
558
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
556
|
+
return ClassPath__hashCode_impl_cciyyd(this.m2j_1);
|
|
559
557
|
};
|
|
560
558
|
protoOf(ClassPath).equals = function (other) {
|
|
561
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
559
|
+
return ClassPath__equals_impl_kffpch(this.m2j_1, other);
|
|
562
560
|
};
|
|
563
561
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
564
562
|
return value;
|
|
@@ -575,47 +573,49 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
575
573
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
576
574
|
if (!(other instanceof DirectoryPath))
|
|
577
575
|
return false;
|
|
578
|
-
if (!($this === (other instanceof DirectoryPath ? other.
|
|
576
|
+
if (!($this === (other instanceof DirectoryPath ? other.n2j_1 : THROW_CCE())))
|
|
579
577
|
return false;
|
|
580
578
|
return true;
|
|
581
579
|
}
|
|
582
580
|
function DirectoryPath(value) {
|
|
583
|
-
this.
|
|
581
|
+
this.n2j_1 = value;
|
|
584
582
|
}
|
|
585
583
|
protoOf(DirectoryPath).toString = function () {
|
|
586
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
584
|
+
return DirectoryPath__toString_impl_ym9pdb(this.n2j_1);
|
|
587
585
|
};
|
|
588
586
|
protoOf(DirectoryPath).hashCode = function () {
|
|
589
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
587
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.n2j_1);
|
|
590
588
|
};
|
|
591
589
|
protoOf(DirectoryPath).equals = function (other) {
|
|
592
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
590
|
+
return DirectoryPath__equals_impl_c2rwsc(this.n2j_1, other);
|
|
593
591
|
};
|
|
594
592
|
function Directory(path) {
|
|
595
|
-
this.
|
|
593
|
+
this.o2j_1 = path;
|
|
596
594
|
}
|
|
597
595
|
function Companion_1() {
|
|
598
596
|
}
|
|
599
|
-
protoOf(Companion_1).
|
|
597
|
+
protoOf(Companion_1).p2j = function (input) {
|
|
600
598
|
// Inline function 'kotlin.let' call
|
|
599
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
601
600
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
|
|
602
601
|
var it = split(input, ['/']);
|
|
603
602
|
var list = plus(dropLast(it, 1), split(last(it), ['.']));
|
|
603
|
+
// Inline function 'kotlin.let' call
|
|
604
604
|
// Inline function 'kotlin.text.lowercase' call
|
|
605
605
|
// Inline function 'kotlin.js.asDynamic' call
|
|
606
|
-
// Inline function 'kotlin.
|
|
606
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
607
607
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
|
|
608
608
|
var ext = last(list).toLowerCase();
|
|
609
609
|
// Inline function 'kotlin.collections.find' call
|
|
610
|
-
var
|
|
610
|
+
var this_0 = get_entries();
|
|
611
611
|
var tmp$ret$5;
|
|
612
612
|
$l$block: {
|
|
613
613
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
614
|
-
var
|
|
615
|
-
while (
|
|
616
|
-
var element =
|
|
614
|
+
var tmp0_iterator = this_0.g();
|
|
615
|
+
while (tmp0_iterator.h()) {
|
|
616
|
+
var element = tmp0_iterator.i();
|
|
617
617
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>.<anonymous>' call
|
|
618
|
-
if (element.
|
|
618
|
+
if (element.h29_1 === ext) {
|
|
619
619
|
tmp$ret$5 = element;
|
|
620
620
|
break $l$block;
|
|
621
621
|
}
|
|
@@ -633,7 +633,7 @@ protoOf(Companion_1).g2l = function (input) {
|
|
|
633
633
|
var extension = tmp;
|
|
634
634
|
var idxOfFileName = list.j() - 2 | 0;
|
|
635
635
|
var filename = _Name___init__impl__o4q07e(list.k(idxOfFileName));
|
|
636
|
-
var path = joinToString(list.
|
|
636
|
+
var path = joinToString(list.w(0, idxOfFileName), '/');
|
|
637
637
|
return new FilePath(_DirectoryPath___init__impl__5bzkjd(path), filename, extension);
|
|
638
638
|
};
|
|
639
639
|
var Companion_instance_1;
|
|
@@ -641,17 +641,17 @@ function Companion_getInstance_1() {
|
|
|
641
641
|
return Companion_instance_1;
|
|
642
642
|
}
|
|
643
643
|
function FilePath(directory, name, extension) {
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
644
|
+
this.q2j_1 = directory;
|
|
645
|
+
this.r2j_1 = name;
|
|
646
|
+
this.s2j_1 = extension;
|
|
647
647
|
}
|
|
648
648
|
protoOf(FilePath).toString = function () {
|
|
649
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
649
|
+
return DirectoryPath__toString_impl_ym9pdb(this.q2j_1) + '/' + _Name___get_value__impl__3tbxxy(this.r2j_1) + '.' + this.s2j_1.h29_1;
|
|
650
650
|
};
|
|
651
651
|
protoOf(FilePath).hashCode = function () {
|
|
652
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
653
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
654
|
-
result = imul(result, 31) + this.
|
|
652
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.q2j_1);
|
|
653
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.r2j_1) | 0;
|
|
654
|
+
result = imul(result, 31) + this.s2j_1.hashCode() | 0;
|
|
655
655
|
return result;
|
|
656
656
|
};
|
|
657
657
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -660,24 +660,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
660
660
|
if (!(other instanceof FilePath))
|
|
661
661
|
return false;
|
|
662
662
|
var tmp0_other_with_cast = other instanceof FilePath ? other : THROW_CCE();
|
|
663
|
-
if (!(this.
|
|
663
|
+
if (!(this.q2j_1 === tmp0_other_with_cast.q2j_1))
|
|
664
664
|
return false;
|
|
665
|
-
if (!(this.
|
|
665
|
+
if (!(this.r2j_1 === tmp0_other_with_cast.r2j_1))
|
|
666
666
|
return false;
|
|
667
|
-
if (!this.
|
|
667
|
+
if (!this.s2j_1.equals(tmp0_other_with_cast.s2j_1))
|
|
668
668
|
return false;
|
|
669
669
|
return true;
|
|
670
670
|
};
|
|
671
671
|
function path(_this__u8e3s4) {
|
|
672
672
|
var tmp;
|
|
673
673
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
674
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
674
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.m2j_1);
|
|
675
675
|
} else {
|
|
676
676
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
677
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
677
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.n2j_1);
|
|
678
678
|
} else {
|
|
679
679
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
680
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
680
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.q2j_1);
|
|
681
681
|
} else {
|
|
682
682
|
noWhenBranchMatchedException();
|
|
683
683
|
}
|
|
@@ -686,13 +686,13 @@ function path(_this__u8e3s4) {
|
|
|
686
686
|
return tmp;
|
|
687
687
|
}
|
|
688
688
|
function IOError(message) {
|
|
689
|
-
this.
|
|
689
|
+
this.t2j_1 = message;
|
|
690
690
|
}
|
|
691
691
|
function WirespecFileError() {
|
|
692
692
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
693
693
|
}
|
|
694
694
|
function SpecificFile(extension) {
|
|
695
|
-
IOError.call(this, 'No ' + extension.
|
|
695
|
+
IOError.call(this, 'No ' + extension.q2_1 + ' file found');
|
|
696
696
|
}
|
|
697
697
|
function CannotAccessFileOrDirectory(input) {
|
|
698
698
|
IOError.call(this, 'Cannot access file or directory: ' + input + '.');
|
|
@@ -722,41 +722,41 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
722
722
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
723
723
|
} else {
|
|
724
724
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
725
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
725
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().c2i(path);
|
|
726
726
|
var tmp_1;
|
|
727
727
|
if (tmp0_elvis_lhs == null) {
|
|
728
|
-
raise.
|
|
728
|
+
raise.yk(new CannotAccessFileOrDirectory(input));
|
|
729
729
|
} else {
|
|
730
730
|
tmp_1 = tmp0_elvis_lhs;
|
|
731
731
|
}
|
|
732
732
|
var meta = tmp_1;
|
|
733
733
|
var pathString = path.toString();
|
|
734
734
|
var tmp_2;
|
|
735
|
-
if (meta.
|
|
735
|
+
if (meta.f2i_1) {
|
|
736
736
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
737
|
-
} else if (meta.
|
|
738
|
-
tmp_2 = Companion_instance_1.
|
|
737
|
+
} else if (meta.e2i_1) {
|
|
738
|
+
tmp_2 = Companion_instance_1.p2j(pathString);
|
|
739
739
|
} else {
|
|
740
|
-
raise.
|
|
740
|
+
raise.yk(new IsNotAFileOrDirectory(pathString));
|
|
741
741
|
}
|
|
742
742
|
tmp_0 = tmp_2;
|
|
743
743
|
}
|
|
744
744
|
var res = tmp_0;
|
|
745
|
-
raise.
|
|
745
|
+
raise.wk();
|
|
746
746
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
747
747
|
tmp = new Right(res);
|
|
748
748
|
} catch ($p) {
|
|
749
749
|
var tmp_3;
|
|
750
750
|
if ($p instanceof RaiseCancellationException) {
|
|
751
751
|
var e = $p;
|
|
752
|
-
raise.
|
|
752
|
+
raise.wk();
|
|
753
753
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
754
754
|
var it = raisedOrRethrow(e, raise);
|
|
755
755
|
tmp_3 = new Left(it);
|
|
756
756
|
} else {
|
|
757
757
|
if ($p instanceof Error) {
|
|
758
758
|
var e_0 = $p;
|
|
759
|
-
raise.
|
|
759
|
+
raise.wk();
|
|
760
760
|
throw nonFatalOrThrow(e_0);
|
|
761
761
|
} else {
|
|
762
762
|
throw $p;
|
|
@@ -773,12 +773,12 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
773
773
|
// Inline function 'kotlin.contracts.contract' call
|
|
774
774
|
var tmp;
|
|
775
775
|
if (_this__u8e3s4 instanceof Right) {
|
|
776
|
-
// Inline function 'arrow.core.getOrElse.stub_for_inlining' call
|
|
777
776
|
// Inline function 'arrow.core.identity' call
|
|
778
|
-
|
|
777
|
+
// Inline function 'arrow.core.identity' call
|
|
778
|
+
tmp = _this__u8e3s4.dk_1;
|
|
779
779
|
} else {
|
|
780
780
|
if (_this__u8e3s4 instanceof Left) {
|
|
781
|
-
errorFn(_this__u8e3s4.
|
|
781
|
+
errorFn(_this__u8e3s4.xj_1.t2j_1);
|
|
782
782
|
tmp = throwKotlinNothingValueException();
|
|
783
783
|
} else {
|
|
784
784
|
noWhenBranchMatchedException();
|
|
@@ -797,78 +797,76 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
797
797
|
try {
|
|
798
798
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
799
799
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>' call
|
|
800
|
-
|
|
801
|
-
// Inline function 'kotlin.
|
|
802
|
-
// Inline function '
|
|
800
|
+
// Inline function 'kotlin.collections.map' call
|
|
801
|
+
// Inline function 'kotlin.collections.map' call
|
|
802
|
+
// Inline function 'kotlin.collections.filter' call
|
|
803
803
|
// Inline function 'kotlin.collections.filter' call
|
|
804
|
-
|
|
804
|
+
// Inline function 'kotlin.let' call
|
|
805
|
+
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.o2j_1));
|
|
806
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
805
807
|
// Inline function 'kotlin.collections.filterTo' call
|
|
808
|
+
var this_1 = get_SystemFileSystem().d2i(this_0);
|
|
806
809
|
var destination = ArrayList_init_$Create$_0();
|
|
807
|
-
var
|
|
808
|
-
while (
|
|
809
|
-
var element =
|
|
810
|
-
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.stub_for_inlining' call
|
|
810
|
+
var tmp0_iterator = this_1.g();
|
|
811
|
+
while (tmp0_iterator.h()) {
|
|
812
|
+
var element = tmp0_iterator.i();
|
|
811
813
|
if (isRegularFile(element)) {
|
|
812
814
|
destination.e(element);
|
|
813
815
|
}
|
|
814
816
|
}
|
|
815
|
-
// Inline function 'kotlin.collections.filter' call
|
|
816
817
|
// Inline function 'kotlin.collections.filterTo' call
|
|
817
818
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
818
|
-
var
|
|
819
|
-
while (
|
|
820
|
-
var element_0 =
|
|
821
|
-
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.stub_for_inlining' call
|
|
819
|
+
var tmp0_iterator_0 = destination.g();
|
|
820
|
+
while (tmp0_iterator_0.h()) {
|
|
821
|
+
var element_0 = tmp0_iterator_0.i();
|
|
822
822
|
if (isWirespecFile(element_0)) {
|
|
823
823
|
destination_0.e(element_0);
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
|
-
// Inline function 'kotlin.collections.map' call
|
|
827
826
|
// Inline function 'kotlin.collections.mapTo' call
|
|
828
827
|
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_0, 10));
|
|
829
|
-
var
|
|
830
|
-
while (
|
|
831
|
-
var item =
|
|
828
|
+
var tmp0_iterator_1 = destination_0.g();
|
|
829
|
+
while (tmp0_iterator_1.h()) {
|
|
830
|
+
var item = tmp0_iterator_1.i();
|
|
832
831
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
833
|
-
var tmp$ret$8 = to(Companion_instance_1.
|
|
832
|
+
var tmp$ret$8 = to(Companion_instance_1.p2j(item.toString()), readString(buffered(get_SystemFileSystem().z2h(item))));
|
|
834
833
|
destination_1.e(tmp$ret$8);
|
|
835
834
|
}
|
|
836
|
-
// Inline function 'kotlin.collections.map' call
|
|
837
835
|
// Inline function 'kotlin.collections.mapTo' call
|
|
838
836
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_1, 10));
|
|
839
|
-
var
|
|
840
|
-
while (
|
|
841
|
-
var item_0 =
|
|
837
|
+
var tmp0_iterator_2 = destination_1.g();
|
|
838
|
+
while (tmp0_iterator_2.h()) {
|
|
839
|
+
var item_0 = tmp0_iterator_2.i();
|
|
842
840
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
843
|
-
var path = item_0.
|
|
844
|
-
var source = item_0.
|
|
845
|
-
var tmp$ret$11 = new Source(path.
|
|
841
|
+
var path = item_0.sd();
|
|
842
|
+
var source = item_0.td();
|
|
843
|
+
var tmp$ret$11 = new Source(path.r2j_1, source);
|
|
846
844
|
destination_2.e(tmp$ret$11);
|
|
847
845
|
}
|
|
848
846
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
849
847
|
var tmp_0;
|
|
850
848
|
var tmp_1 = tmp0_elvis_lhs;
|
|
851
849
|
if ((tmp_1 == null ? null : new NonEmptySet(tmp_1)) == null) {
|
|
852
|
-
raise.
|
|
850
|
+
raise.yk(new WirespecFileError());
|
|
853
851
|
} else {
|
|
854
852
|
tmp_0 = tmp0_elvis_lhs;
|
|
855
853
|
}
|
|
856
854
|
var res = new NonEmptySet(tmp_0);
|
|
857
|
-
raise.
|
|
855
|
+
raise.wk();
|
|
858
856
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
859
857
|
tmp = new Right(res);
|
|
860
858
|
} catch ($p) {
|
|
861
859
|
var tmp_2;
|
|
862
860
|
if ($p instanceof RaiseCancellationException) {
|
|
863
861
|
var e = $p;
|
|
864
|
-
raise.
|
|
862
|
+
raise.wk();
|
|
865
863
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
866
864
|
var it = raisedOrRethrow(e, raise);
|
|
867
865
|
tmp_2 = new Left(it);
|
|
868
866
|
} else {
|
|
869
867
|
if ($p instanceof Error) {
|
|
870
868
|
var e_0 = $p;
|
|
871
|
-
raise.
|
|
869
|
+
raise.wk();
|
|
872
870
|
throw nonFatalOrThrow(e_0);
|
|
873
871
|
} else {
|
|
874
872
|
throw $p;
|
|
@@ -880,9 +878,10 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
880
878
|
}
|
|
881
879
|
function read(_this__u8e3s4) {
|
|
882
880
|
// Inline function 'kotlin.let' call
|
|
881
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
883
882
|
// Inline function 'community.flock.wirespec.plugin.io.read.<anonymous>' call
|
|
884
883
|
var it = Path(_this__u8e3s4.toString());
|
|
885
|
-
return readString(buffered(get_SystemFileSystem().
|
|
884
|
+
return readString(buffered(get_SystemFileSystem().z2h(it)));
|
|
886
885
|
}
|
|
887
886
|
function getOutPutPath(inputPath, output) {
|
|
888
887
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -895,13 +894,13 @@ function getOutPutPath(inputPath, output) {
|
|
|
895
894
|
try {
|
|
896
895
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
897
896
|
// Inline function 'community.flock.wirespec.plugin.io.getOutPutPath.<anonymous>' call
|
|
898
|
-
var it = raise.
|
|
897
|
+
var it = raise.zk(getFullPath(output, true));
|
|
899
898
|
var tmp_0;
|
|
900
899
|
if (it == null) {
|
|
901
900
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
902
901
|
} else {
|
|
903
902
|
if (it instanceof DirectoryPath) {
|
|
904
|
-
tmp_0 = it.
|
|
903
|
+
tmp_0 = it.n2j_1;
|
|
905
904
|
} else {
|
|
906
905
|
var tmp_1;
|
|
907
906
|
if (it instanceof FilePath) {
|
|
@@ -910,28 +909,28 @@ function getOutPutPath(inputPath, output) {
|
|
|
910
909
|
tmp_1 = it instanceof ClassPath;
|
|
911
910
|
}
|
|
912
911
|
if (tmp_1) {
|
|
913
|
-
raise.
|
|
912
|
+
raise.yk(new OutputShouldBeADirectory());
|
|
914
913
|
} else {
|
|
915
914
|
noWhenBranchMatchedException();
|
|
916
915
|
}
|
|
917
916
|
}
|
|
918
917
|
}
|
|
919
918
|
var res = new DirectoryPath(tmp_0);
|
|
920
|
-
raise.
|
|
919
|
+
raise.wk();
|
|
921
920
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
922
921
|
tmp = new Right(res);
|
|
923
922
|
} catch ($p) {
|
|
924
923
|
var tmp_2;
|
|
925
924
|
if ($p instanceof RaiseCancellationException) {
|
|
926
925
|
var e = $p;
|
|
927
|
-
raise.
|
|
926
|
+
raise.wk();
|
|
928
927
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
929
928
|
var it_0 = raisedOrRethrow(e, raise);
|
|
930
929
|
tmp_2 = new Left(it_0);
|
|
931
930
|
} else {
|
|
932
931
|
if ($p instanceof Error) {
|
|
933
932
|
var e_0 = $p;
|
|
934
|
-
raise.
|
|
933
|
+
raise.wk();
|
|
935
934
|
throw nonFatalOrThrow(e_0);
|
|
936
935
|
} else {
|
|
937
936
|
throw $p;
|
|
@@ -942,44 +941,47 @@ function getOutPutPath(inputPath, output) {
|
|
|
942
941
|
return tmp;
|
|
943
942
|
}
|
|
944
943
|
function write(_this__u8e3s4, string) {
|
|
944
|
+
// Inline function 'kotlin.let' call
|
|
945
945
|
// Inline function 'kotlin.also' call
|
|
946
946
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
947
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
947
948
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
|
|
948
|
-
var tmp0_safe_receiver = this_0.
|
|
949
|
+
var tmp0_safe_receiver = this_0.i2i();
|
|
949
950
|
if (tmp0_safe_receiver == null)
|
|
950
951
|
null;
|
|
951
952
|
else
|
|
952
953
|
createIfNotExists(tmp0_safe_receiver);
|
|
953
|
-
// Inline function 'kotlin.
|
|
954
|
-
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
|
|
954
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
955
955
|
// Inline function 'kotlin.apply' call
|
|
956
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
956
|
+
var this_1 = buffered_0(get_SystemFileSystem().b2i(this_0));
|
|
957
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
957
958
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>.<anonymous>' call
|
|
958
959
|
writeString(this_1, string);
|
|
959
|
-
this_1.
|
|
960
|
+
this_1.q8();
|
|
960
961
|
return Unit_instance;
|
|
961
962
|
}
|
|
962
963
|
function createIfNotExists(_this__u8e3s4, create) {
|
|
963
964
|
create = create === VOID ? true : create;
|
|
964
965
|
// Inline function 'kotlin.also' call
|
|
966
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
965
967
|
// Inline function 'community.flock.wirespec.plugin.io.createIfNotExists.<anonymous>' call
|
|
966
|
-
if (create && !get_SystemFileSystem().
|
|
967
|
-
get_SystemFileSystem().
|
|
968
|
+
if (create && !get_SystemFileSystem().x2h(_this__u8e3s4)) {
|
|
969
|
+
get_SystemFileSystem().y2h(_this__u8e3s4, true);
|
|
968
970
|
}
|
|
969
971
|
return _this__u8e3s4;
|
|
970
972
|
}
|
|
971
973
|
function isWirespecFile(path) {
|
|
972
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
974
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().h29_1;
|
|
973
975
|
}
|
|
974
976
|
function isRegularFile(path) {
|
|
975
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
976
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
977
|
+
var tmp0_safe_receiver = get_SystemFileSystem().c2i(path);
|
|
978
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e2i_1) === true;
|
|
977
979
|
}
|
|
978
980
|
function get_extension(_this__u8e3s4) {
|
|
979
|
-
return substringAfterLast(_this__u8e3s4.
|
|
981
|
+
return substringAfterLast(_this__u8e3s4.s2(), _Char___init__impl__6a9atx(46), '');
|
|
980
982
|
}
|
|
981
983
|
//region block: post-declaration
|
|
982
|
-
protoOf(compile$ctx$1).
|
|
984
|
+
protoOf(compile$ctx$1).z22 = get_spec;
|
|
983
985
|
//endregion
|
|
984
986
|
//region block: init
|
|
985
987
|
Companion_instance = new Companion();
|
|
@@ -1004,11 +1006,11 @@ export {
|
|
|
1004
1006
|
values as values39f22etrsivck,
|
|
1005
1007
|
compile_0 as compile3ocumkpx3p9ko,
|
|
1006
1008
|
convert as convert3g5kyi4d6y9kc,
|
|
1007
|
-
Language_Kotlin_getInstance as
|
|
1009
|
+
Language_Kotlin_getInstance as Language_Kotlin_getInstancesf3hf9q9fn0g,
|
|
1008
1010
|
_DirectoryPath___get_value__impl__hdy2e3 as _DirectoryPath___get_value__impl__hdy2e33exlp2vb3n338,
|
|
1009
1011
|
_Name___init__impl__o4q07e as _Name___init__impl__o4q07e3fjy1youl9nku,
|
|
1010
|
-
Companion_instance_1 as
|
|
1011
|
-
Companion_instance_0 as
|
|
1012
|
+
Companion_instance_1 as Companion_instance19lljpggtes6o,
|
|
1013
|
+
Companion_instance_0 as Companion_instancewgxql7b970h7,
|
|
1012
1014
|
};
|
|
1013
1015
|
//endregion
|
|
1014
1016
|
|