@flock/wirespec 0.16.4 → 0.16.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt.mjs +1148 -1148
- package/colormath-root-colormath.mjs +418 -418
- package/kotlin-kotlin-stdlib.mjs +29 -29
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1766 -1766
- package/kotlinx-io-kotlinx-io-core.mjs +373 -373
- package/markdown.mjs +1829 -1829
- package/mordant-mordant.mjs +1582 -1582
- package/package.json +5 -1
- package/wirespec-fetch.mjs +3 -2
- package/wirespec-serialization.d.ts +3 -0
- package/wirespec-serialization.mjs +17 -0
- package/wirespec-src-compiler-core.mjs +2938 -6444
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +1003 -0
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -0
- package/wirespec-src-compiler-emitters-kotlin.mjs +844 -0
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -0
- package/wirespec-src-compiler-emitters-python.mjs +1004 -0
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -0
- package/wirespec-src-compiler-emitters-typescript.mjs +958 -0
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -0
- package/wirespec-src-compiler-emitters-wirespec.mjs +390 -0
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -0
- package/wirespec-src-compiler-lib.mjs +314 -314
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +292 -292
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +354 -354
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +331 -319
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +87 -121
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +6 -2
- package/wirespec-src-plugin-npm.mjs +46 -28
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +25 -25
|
@@ -11,13 +11,12 @@ import {
|
|
|
11
11
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
12
12
|
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
13
13
|
LinkedHashMap_init_$Create$snys8oz8txtu as LinkedHashMap_init_$Create$,
|
|
14
|
+
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
14
15
|
ArrayList_init_$Create$3m1kyiqequwm5 as ArrayList_init_$Create$,
|
|
15
16
|
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
16
|
-
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
17
|
-
toString1pkumu07cwy4m as toString,
|
|
18
|
-
IllegalStateException_init_$Create$1nm9y6jd3c9iy as IllegalStateException_init_$Create$,
|
|
19
17
|
ArrayList_init_$Create$2rimpp4x9tjd3 as ArrayList_init_$Create$_0,
|
|
20
18
|
addAll1k27qatfgp3k5 as addAll,
|
|
19
|
+
toString1pkumu07cwy4m as toString,
|
|
21
20
|
hashCodeq5arwsb9dgti as hashCode,
|
|
22
21
|
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
|
|
23
22
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
@@ -27,6 +26,7 @@ import {
|
|
|
27
26
|
dropLast1vpiyky649o34 as dropLast,
|
|
28
27
|
last1vo29oleiqj36 as last,
|
|
29
28
|
plus310ted5e4i90h as plus,
|
|
29
|
+
IllegalStateException_init_$Create$1nm9y6jd3c9iy as IllegalStateException_init_$Create$,
|
|
30
30
|
substringAfter35b3qhto7hchb as substringAfter,
|
|
31
31
|
startsWith26w8qjqapeeq6 as startsWith,
|
|
32
32
|
throwKotlinNothingValueException2lxmvl03dor6f as throwKotlinNothingValueException,
|
|
@@ -34,35 +34,42 @@ import {
|
|
|
34
34
|
_Char___init__impl__6a9atx367vrx0avsvbg as _Char___init__impl__6a9atx,
|
|
35
35
|
substringAfterLast3r0t0my8cpqhk as substringAfterLast,
|
|
36
36
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
37
|
+
import { JavaEmitter1ye60adpym6m1 as JavaEmitter } from './wirespec-src-compiler-emitters-java.mjs';
|
|
38
|
+
import { KotlinEmitterddb8247fx90i as KotlinEmitter } from './wirespec-src-compiler-emitters-kotlin.mjs';
|
|
39
|
+
import { PythonEmitter2pjclp0u1gkmn as PythonEmitter } from './wirespec-src-compiler-emitters-python.mjs';
|
|
40
|
+
import { TypeScriptEmitter1b8xo1btx35xi as TypeScriptEmitter } from './wirespec-src-compiler-emitters-typescript.mjs';
|
|
41
|
+
import { WirespecEmitter2ad9je4ecrvjk as WirespecEmitter } from './wirespec-src-compiler-emitters-wirespec.mjs';
|
|
42
|
+
import {
|
|
43
|
+
OpenAPIV2Emitter_getInstance2h4ew4hncs9qx as OpenAPIV2Emitter_getInstance,
|
|
44
|
+
OpenAPIV3Emitter_getInstance26cg8x9h7k2p7 as OpenAPIV3Emitter_getInstance,
|
|
45
|
+
OpenAPIV2Parser_instance3853tvzrce12g as OpenAPIV2Parser_instance,
|
|
46
|
+
OpenAPIV3Parser_instance23izvpvl4ad2l as OpenAPIV3Parser_instance,
|
|
47
|
+
} from './wirespec-src-converter-openapi.mjs';
|
|
37
48
|
import {
|
|
38
49
|
_NonEmptySet___get_elements__impl__g09gj93rk9dtepr20b0 as _NonEmptySet___get_elements__impl__g09gj9,
|
|
39
50
|
toNonEmptyListOrNull2ovnnazjb3msz as toNonEmptyListOrNull,
|
|
40
51
|
NonEmptyList3ak25ihy2gcvs as NonEmptyList,
|
|
41
|
-
Left2oemzq1tpcg4i as Left,
|
|
42
|
-
Right351sh2v8odavg as Right,
|
|
43
|
-
NonEmptySet__toString_impl_yfcj6n17aozveblinij as NonEmptySet__toString_impl_yfcj6n,
|
|
44
|
-
NonEmptySet__hashCode_impl_co6mds3g7qt287zdejc as NonEmptySet__hashCode_impl_co6mds,
|
|
45
|
-
NonEmptySet1rtvr2guloo52 as NonEmptySet,
|
|
46
52
|
DefaultRaisevd10gc79qxh8 as DefaultRaise,
|
|
53
|
+
Right351sh2v8odavg as Right,
|
|
47
54
|
nonFatalOrThrow35agffkx4bbtz as nonFatalOrThrow,
|
|
48
55
|
raisedOrRethrow397oyvsdde7oq as raisedOrRethrow,
|
|
56
|
+
Left2oemzq1tpcg4i as Left,
|
|
49
57
|
RaiseCancellationException3n5raogfhbd1l as RaiseCancellationException,
|
|
58
|
+
NonEmptySet__toString_impl_yfcj6n17aozveblinij as NonEmptySet__toString_impl_yfcj6n,
|
|
59
|
+
NonEmptySet__hashCode_impl_co6mds3g7qt287zdejc as NonEmptySet__hashCode_impl_co6mds,
|
|
60
|
+
NonEmptySet1rtvr2guloo52 as NonEmptySet,
|
|
50
61
|
toNonEmptySetOrNull1tjnd9jrkd4bs as toNonEmptySetOrNull,
|
|
51
62
|
} from './arrow-arrow-core.mjs';
|
|
52
63
|
import {
|
|
53
64
|
ModuleContent750xezzquzy9 as ModuleContent,
|
|
54
65
|
compile2rgmakz9u3swp as compile,
|
|
55
|
-
Parser_instance3aef7lsz2n7s7 as Parser_instance,
|
|
56
66
|
ParseOptionspl50698nv4gs as ParseOptions,
|
|
67
|
+
Validator_instance18vnpdfejv03o as Validator_instance,
|
|
57
68
|
get_spec3cnzsbb1ufwje as get_spec,
|
|
58
69
|
HasLanguageSpec1fo5x3q6dcifj as HasLanguageSpec,
|
|
59
|
-
|
|
60
|
-
|
|
70
|
+
get_entries1b334j69qpu9d as get_entries,
|
|
71
|
+
FileExtension_Wirespec_getInstance2ludls5udllsg as FileExtension_Wirespec_getInstance,
|
|
61
72
|
} from './wirespec-src-compiler-core.mjs';
|
|
62
|
-
import {
|
|
63
|
-
OpenAPIV2Parser_instance3853tvzrce12g as OpenAPIV2Parser_instance,
|
|
64
|
-
OpenAPIV3Parser_instance23izvpvl4ad2l as OpenAPIV3Parser_instance,
|
|
65
|
-
} from './wirespec-src-converter-openapi.mjs';
|
|
66
73
|
import { AvroParser_instance3sg62isr226zb as AvroParser_instance } from './wirespec-src-converter-avro.mjs';
|
|
67
74
|
import {
|
|
68
75
|
Path21qufdfgaayly as Path,
|
|
@@ -150,7 +157,7 @@ var Language_OpenAPIV2_instance;
|
|
|
150
157
|
var Language_OpenAPIV3_instance;
|
|
151
158
|
function Companion_0() {
|
|
152
159
|
}
|
|
153
|
-
protoOf(Companion_0).
|
|
160
|
+
protoOf(Companion_0).j2j = function () {
|
|
154
161
|
// Inline function 'kotlin.collections.associateBy' call
|
|
155
162
|
var this_0 = get_entries_1();
|
|
156
163
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -197,6 +204,36 @@ var $ENTRIES_0;
|
|
|
197
204
|
function Language(name, ordinal) {
|
|
198
205
|
Enum.call(this, name, ordinal);
|
|
199
206
|
}
|
|
207
|
+
function toEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
208
|
+
var tmp;
|
|
209
|
+
switch (_this__u8e3s4.r2_1) {
|
|
210
|
+
case 0:
|
|
211
|
+
tmp = new JavaEmitter(packageName, emitShared);
|
|
212
|
+
break;
|
|
213
|
+
case 1:
|
|
214
|
+
tmp = new KotlinEmitter(packageName, emitShared);
|
|
215
|
+
break;
|
|
216
|
+
case 3:
|
|
217
|
+
tmp = new PythonEmitter(packageName, emitShared);
|
|
218
|
+
break;
|
|
219
|
+
case 2:
|
|
220
|
+
tmp = new TypeScriptEmitter();
|
|
221
|
+
break;
|
|
222
|
+
case 4:
|
|
223
|
+
tmp = new WirespecEmitter();
|
|
224
|
+
break;
|
|
225
|
+
case 5:
|
|
226
|
+
tmp = OpenAPIV2Emitter_getInstance();
|
|
227
|
+
break;
|
|
228
|
+
case 6:
|
|
229
|
+
tmp = OpenAPIV3Emitter_getInstance();
|
|
230
|
+
break;
|
|
231
|
+
default:
|
|
232
|
+
noWhenBranchMatchedException();
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
return tmp;
|
|
236
|
+
}
|
|
200
237
|
function Language_Java_getInstance() {
|
|
201
238
|
Language_initEntries();
|
|
202
239
|
return Language_Java_instance;
|
|
@@ -227,10 +264,8 @@ function Language_OpenAPIV3_getInstance() {
|
|
|
227
264
|
}
|
|
228
265
|
function compile_0(arguments_0) {
|
|
229
266
|
var ctx = new compile$ctx$1(arguments_0);
|
|
230
|
-
// Inline function 'arrow.core.Either.fold' call
|
|
231
|
-
// Inline function 'arrow.core.Either.mapLeft' call
|
|
232
267
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
233
|
-
var this_0 = arguments_0.
|
|
268
|
+
var this_0 = arguments_0.k2j_1;
|
|
234
269
|
// Inline function 'kotlin.collections.map' call
|
|
235
270
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
236
271
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -239,60 +274,15 @@ function compile_0(arguments_0) {
|
|
|
239
274
|
while (tmp0_iterator.h()) {
|
|
240
275
|
var item = tmp0_iterator.i();
|
|
241
276
|
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
242
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
277
|
+
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.s2j_1), item.t2j_1);
|
|
243
278
|
destination.e(tmp$ret$0);
|
|
244
279
|
}
|
|
245
280
|
var tmp$ret$3 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
246
|
-
|
|
247
|
-
// Inline function 'arrow.core.Either.fold' call
|
|
248
|
-
var this_2 = compile(ctx, tmp$ret$3);
|
|
249
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
250
|
-
var tmp;
|
|
251
|
-
if (this_2 instanceof Right) {
|
|
252
|
-
// Inline function 'arrow.core.Either.mapLeft.<anonymous>' call
|
|
253
|
-
var it = this_2.ek_1;
|
|
254
|
-
tmp = new Right(it);
|
|
255
|
-
} else {
|
|
256
|
-
if (this_2 instanceof Left) {
|
|
257
|
-
// Inline function 'arrow.core.Either.mapLeft.<anonymous>' call
|
|
258
|
-
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
259
|
-
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
260
|
-
var this_3 = this_2.yj_1;
|
|
261
|
-
var tmp_0 = this_3.jk_1.r1();
|
|
262
|
-
// Inline function 'kotlin.collections.map' call
|
|
263
|
-
var this_4 = this_3.kk_1;
|
|
264
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
265
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
266
|
-
var tmp0_iterator_0 = this_4.g();
|
|
267
|
-
while (tmp0_iterator_0.h()) {
|
|
268
|
-
var item_0 = tmp0_iterator_0.i();
|
|
269
|
-
var tmp$ret$6 = item_0.r1();
|
|
270
|
-
destination_0.e(tmp$ret$6);
|
|
271
|
-
}
|
|
272
|
-
var tmp$ret$10 = new NonEmptyList(tmp_0, destination_0);
|
|
273
|
-
tmp = new Left(tmp$ret$10);
|
|
274
|
-
} else {
|
|
275
|
-
noWhenBranchMatchedException();
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
var this_5 = tmp;
|
|
279
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
280
|
-
var tmp_1;
|
|
281
|
-
if (this_5 instanceof Right) {
|
|
282
|
-
var it_0 = this_5.ek_1;
|
|
283
|
-
tmp_1 = arguments_0.l2j_1(it_0);
|
|
284
|
-
} else {
|
|
285
|
-
if (this_5 instanceof Left) {
|
|
286
|
-
var it_1 = this_5.yj_1;
|
|
287
|
-
tmp_1 = arguments_0.m2j_1(joinToString(it_1));
|
|
288
|
-
} else {
|
|
289
|
-
noWhenBranchMatchedException();
|
|
290
|
-
}
|
|
291
|
-
}
|
|
281
|
+
fold(compile(ctx, tmp$ret$3), arguments_0);
|
|
292
282
|
}
|
|
293
283
|
function convert(arguments_0) {
|
|
294
284
|
var tmp;
|
|
295
|
-
switch (arguments_0.
|
|
285
|
+
switch (arguments_0.u2j_1.r2_1) {
|
|
296
286
|
case 0:
|
|
297
287
|
tmp = OpenAPIV2Parser_instance;
|
|
298
288
|
break;
|
|
@@ -307,13 +297,13 @@ function convert(arguments_0) {
|
|
|
307
297
|
break;
|
|
308
298
|
}
|
|
309
299
|
var parser = tmp;
|
|
310
|
-
var options =
|
|
300
|
+
var options = new ParseOptions(arguments_0.c2k_1);
|
|
301
|
+
// Inline function 'arrow.core.Either.map' call
|
|
311
302
|
// Inline function 'kotlin.let' call
|
|
312
|
-
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
313
303
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
314
304
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
315
305
|
// Inline function 'arrow.core.NonEmptySet.map' call
|
|
316
|
-
var this_0 = arguments_0.
|
|
306
|
+
var this_0 = arguments_0.v2j_1;
|
|
317
307
|
// Inline function 'kotlin.collections.map' call
|
|
318
308
|
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
319
309
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -322,13 +312,13 @@ function convert(arguments_0) {
|
|
|
322
312
|
while (tmp0_iterator.h()) {
|
|
323
313
|
var item = tmp0_iterator.i();
|
|
324
314
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
325
|
-
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.
|
|
315
|
+
var tmp$ret$0 = new ModuleContent(_Name___get_value__impl__3tbxxy(item.s2j_1), item.t2j_1);
|
|
326
316
|
destination.e(tmp$ret$0);
|
|
327
317
|
}
|
|
328
318
|
var this_2 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
329
319
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
330
320
|
var moduleContent = this_2.jk_1;
|
|
331
|
-
var tmp_0 = parser.
|
|
321
|
+
var tmp_0 = parser.w2e(moduleContent, arguments_0.c2k_1);
|
|
332
322
|
// Inline function 'kotlin.collections.map' call
|
|
333
323
|
var this_3 = this_2.kk_1;
|
|
334
324
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -337,218 +327,231 @@ function convert(arguments_0) {
|
|
|
337
327
|
while (tmp0_iterator_0.h()) {
|
|
338
328
|
var item_0 = tmp0_iterator_0.i();
|
|
339
329
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
340
|
-
var tmp$ret$5 = parser.
|
|
330
|
+
var tmp$ret$5 = parser.w2e(item_0, arguments_0.c2k_1);
|
|
341
331
|
destination_0.e(tmp$ret$5);
|
|
342
332
|
}
|
|
343
333
|
var this_4 = new NonEmptyList(tmp_0, destination_0);
|
|
344
334
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
345
|
-
var
|
|
346
|
-
|
|
347
|
-
var this_5 = ast.o29_1;
|
|
348
|
-
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
349
|
-
var module_0 = this_5.jk_1;
|
|
350
|
-
// Inline function 'arrow.core.getOrElse' call
|
|
351
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
352
|
-
// Inline function 'arrow.core.Either.fold' call
|
|
353
|
-
var this_6 = Parser_instance.t2b(options)(module_0.w26_1);
|
|
354
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
355
|
-
var tmp_1;
|
|
356
|
-
if (this_6 instanceof Right) {
|
|
357
|
-
// Inline function 'arrow.core.identity' call
|
|
358
|
-
// Inline function 'arrow.core.identity' call
|
|
359
|
-
tmp_1 = this_6.ek_1;
|
|
360
|
-
} else {
|
|
361
|
-
if (this_6 instanceof Left) {
|
|
362
|
-
this_6.yj_1;
|
|
363
|
-
var message = 'Invalid statements';
|
|
364
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
365
|
-
} else {
|
|
366
|
-
noWhenBranchMatchedException();
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
var tmp$ret$12 = tmp_1;
|
|
370
|
-
var tmp_2 = module_0.f29(VOID, tmp$ret$12);
|
|
335
|
+
var it = this_4.jk_1;
|
|
336
|
+
var tmp_1 = Validator_instance.u29(options, it);
|
|
371
337
|
// Inline function 'kotlin.collections.map' call
|
|
372
|
-
var
|
|
338
|
+
var this_5 = this_4.kk_1;
|
|
373
339
|
// Inline function 'kotlin.collections.mapTo' call
|
|
374
|
-
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(
|
|
375
|
-
var tmp0_iterator_1 =
|
|
340
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_5, 10));
|
|
341
|
+
var tmp0_iterator_1 = this_5.g();
|
|
376
342
|
while (tmp0_iterator_1.h()) {
|
|
377
343
|
var item_1 = tmp0_iterator_1.i();
|
|
344
|
+
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
345
|
+
var tmp$ret$10 = Validator_instance.u29(options, item_1);
|
|
346
|
+
destination_1.e(tmp$ret$10);
|
|
347
|
+
}
|
|
348
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
349
|
+
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
350
|
+
var it_0 = new NonEmptyList(tmp_1, destination_1);
|
|
351
|
+
// Inline function 'arrow.core.raise.either' call
|
|
352
|
+
// Inline function 'arrow.core.raise.fold' call
|
|
353
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
354
|
+
// Inline function 'arrow.core.raise.fold' call
|
|
355
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
356
|
+
var raise = new DefaultRaise(false);
|
|
357
|
+
var tmp_2;
|
|
358
|
+
try {
|
|
359
|
+
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
378
360
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
// Inline function 'arrow.core.
|
|
382
|
-
|
|
383
|
-
|
|
361
|
+
var res = raise.bl(it_0);
|
|
362
|
+
raise.xk();
|
|
363
|
+
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
364
|
+
tmp_2 = new Right(res);
|
|
365
|
+
} catch ($p) {
|
|
384
366
|
var tmp_3;
|
|
385
|
-
if (
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
367
|
+
if ($p instanceof RaiseCancellationException) {
|
|
368
|
+
var e = $p;
|
|
369
|
+
raise.xk();
|
|
370
|
+
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
371
|
+
var it_1 = raisedOrRethrow(e, raise);
|
|
372
|
+
tmp_3 = new Left(it_1);
|
|
389
373
|
} else {
|
|
390
|
-
if (
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
throw
|
|
374
|
+
if ($p instanceof Error) {
|
|
375
|
+
var e_0 = $p;
|
|
376
|
+
raise.xk();
|
|
377
|
+
throw nonFatalOrThrow(e_0);
|
|
394
378
|
} else {
|
|
395
|
-
|
|
379
|
+
throw $p;
|
|
396
380
|
}
|
|
397
381
|
}
|
|
398
|
-
|
|
399
|
-
var tmp$ret$18 = item_1.f29(VOID, tmp$ret$17);
|
|
400
|
-
destination_1.e(tmp$ret$18);
|
|
382
|
+
tmp_2 = tmp_3;
|
|
401
383
|
}
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
while (tmp0_iterator_2.h()) {
|
|
410
|
-
var item_2 = tmp0_iterator_2.i();
|
|
384
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
385
|
+
// Inline function 'arrow.core.flatMap' call
|
|
386
|
+
var this_6 = tmp_2;
|
|
387
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
388
|
+
var tmp_4;
|
|
389
|
+
if (this_6 instanceof Right) {
|
|
390
|
+
// Inline function 'arrow.core.Either.map.<anonymous>' call
|
|
411
391
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
412
|
-
// Inline function 'arrow.core.NonEmptyList.
|
|
413
|
-
var
|
|
392
|
+
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
393
|
+
var this_7 = this_6.ek_1;
|
|
414
394
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
415
|
-
var
|
|
416
|
-
// Inline function 'arrow.core.
|
|
417
|
-
|
|
418
|
-
// Inline function '
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
var
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
this_11.yj_1;
|
|
429
|
-
var message_1 = 'Invalid statements';
|
|
430
|
-
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
431
|
-
} else {
|
|
432
|
-
noWhenBranchMatchedException();
|
|
433
|
-
}
|
|
395
|
+
var ast = this_7.jk_1;
|
|
396
|
+
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
397
|
+
var this_8 = arguments_0.w2j_1;
|
|
398
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
399
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
400
|
+
var this_9 = _NonEmptySet___get_elements__impl__g09gj9(this_8);
|
|
401
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
402
|
+
var tmp0_iterator_2 = this_9.g();
|
|
403
|
+
while (tmp0_iterator_2.h()) {
|
|
404
|
+
var element = tmp0_iterator_2.i();
|
|
405
|
+
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>.<anonymous>' call
|
|
406
|
+
var list = element.d23(ast, arguments_0.a2k_1);
|
|
407
|
+
addAll(destination_2, list);
|
|
434
408
|
}
|
|
435
|
-
var
|
|
436
|
-
|
|
437
|
-
// Inline function 'kotlin.collections.
|
|
438
|
-
var
|
|
439
|
-
|
|
440
|
-
var
|
|
441
|
-
var tmp0_iterator_3 = this_12.g();
|
|
409
|
+
var tmp_5 = ensureNotNull(toNonEmptyListOrNull(destination_2)).hk();
|
|
410
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
411
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
412
|
+
var this_10 = this_7.kk_1;
|
|
413
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
414
|
+
var tmp0_iterator_3 = this_10.g();
|
|
442
415
|
while (tmp0_iterator_3.h()) {
|
|
443
|
-
var
|
|
416
|
+
var element_0 = tmp0_iterator_3.i();
|
|
444
417
|
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
445
|
-
// Inline function 'arrow.core.
|
|
446
|
-
|
|
447
|
-
// Inline function '
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
var
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
this_13.yj_1;
|
|
458
|
-
var message_2 = 'Invalid statements';
|
|
459
|
-
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
460
|
-
} else {
|
|
461
|
-
noWhenBranchMatchedException();
|
|
462
|
-
}
|
|
418
|
+
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
419
|
+
var this_11 = arguments_0.w2j_1;
|
|
420
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
421
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
422
|
+
var this_12 = _NonEmptySet___get_elements__impl__g09gj9(this_11);
|
|
423
|
+
var destination_4 = ArrayList_init_$Create$_0();
|
|
424
|
+
var tmp0_iterator_4 = this_12.g();
|
|
425
|
+
while (tmp0_iterator_4.h()) {
|
|
426
|
+
var element_1 = tmp0_iterator_4.i();
|
|
427
|
+
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>.<anonymous>' call
|
|
428
|
+
var list_0 = element_1.d23(element_0, arguments_0.a2k_1);
|
|
429
|
+
addAll(destination_4, list_0);
|
|
463
430
|
}
|
|
464
|
-
var
|
|
465
|
-
|
|
466
|
-
|
|
431
|
+
var list_1 = ensureNotNull(toNonEmptyListOrNull(destination_4));
|
|
432
|
+
addAll(destination_3, list_1);
|
|
433
|
+
}
|
|
434
|
+
var tmp$ret$36 = tmp_5.ok(destination_3);
|
|
435
|
+
tmp_4 = new Right(tmp$ret$36);
|
|
436
|
+
} else {
|
|
437
|
+
if (this_6 instanceof Left) {
|
|
438
|
+
tmp_4 = this_6;
|
|
439
|
+
} else {
|
|
440
|
+
noWhenBranchMatchedException();
|
|
467
441
|
}
|
|
468
|
-
var tmp$ret$35 = new NonEmptyList(tmp_6, destination_3);
|
|
469
|
-
var tmp$ret$36 = item_2.w2a(tmp$ret$35);
|
|
470
|
-
destination_2.e(tmp$ret$36);
|
|
471
442
|
}
|
|
472
|
-
var
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
// Inline function '
|
|
478
|
-
// Inline function '
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
// Inline function '
|
|
485
|
-
var
|
|
486
|
-
|
|
443
|
+
var tmp$ret$39 = tmp_4;
|
|
444
|
+
fold(tmp$ret$39, arguments_0);
|
|
445
|
+
}
|
|
446
|
+
function fold(_this__u8e3s4, arguments_0) {
|
|
447
|
+
// Inline function 'arrow.core.Either.fold' call
|
|
448
|
+
// Inline function 'arrow.core.Either.mapLeft' call
|
|
449
|
+
// Inline function 'arrow.core.Either.mapLeft' call
|
|
450
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
451
|
+
// Inline function 'arrow.core.Either.fold' call
|
|
452
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
453
|
+
var tmp;
|
|
454
|
+
if (_this__u8e3s4 instanceof Right) {
|
|
455
|
+
// Inline function 'arrow.core.Either.mapLeft.<anonymous>' call
|
|
456
|
+
var it = _this__u8e3s4.ek_1;
|
|
457
|
+
tmp = new Right(it);
|
|
458
|
+
} else {
|
|
459
|
+
if (_this__u8e3s4 instanceof Left) {
|
|
460
|
+
// Inline function 'arrow.core.Either.mapLeft.<anonymous>' call
|
|
461
|
+
// Inline function 'community.flock.wirespec.plugin.fold.<anonymous>' call
|
|
462
|
+
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
463
|
+
var this_0 = _this__u8e3s4.yj_1;
|
|
464
|
+
var tmp_0 = this_0.jk_1.r1();
|
|
465
|
+
// Inline function 'kotlin.collections.map' call
|
|
466
|
+
var this_1 = this_0.kk_1;
|
|
467
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
468
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
469
|
+
var tmp0_iterator = this_1.g();
|
|
470
|
+
while (tmp0_iterator.h()) {
|
|
471
|
+
var item = tmp0_iterator.i();
|
|
472
|
+
var tmp$ret$2 = item.r1();
|
|
473
|
+
destination.e(tmp$ret$2);
|
|
474
|
+
}
|
|
475
|
+
var tmp$ret$6 = new NonEmptyList(tmp_0, destination);
|
|
476
|
+
tmp = new Left(tmp$ret$6);
|
|
477
|
+
} else {
|
|
478
|
+
noWhenBranchMatchedException();
|
|
479
|
+
}
|
|
487
480
|
}
|
|
488
|
-
|
|
489
|
-
// Inline function '
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
var
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
var
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
507
|
-
var list_0 = element_1.d23(element_0, arguments_0.z2j_1);
|
|
508
|
-
addAll(destination_6, list_0);
|
|
481
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
482
|
+
// Inline function 'arrow.core.Either.fold' call
|
|
483
|
+
var this_2 = tmp;
|
|
484
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
485
|
+
var tmp_1;
|
|
486
|
+
if (this_2 instanceof Right) {
|
|
487
|
+
// Inline function 'arrow.core.Either.mapLeft.<anonymous>' call
|
|
488
|
+
var it_0 = this_2.ek_1;
|
|
489
|
+
tmp_1 = new Right(it_0);
|
|
490
|
+
} else {
|
|
491
|
+
if (this_2 instanceof Left) {
|
|
492
|
+
// Inline function 'arrow.core.Either.mapLeft.<anonymous>' call
|
|
493
|
+
// Inline function 'community.flock.wirespec.plugin.fold.<anonymous>' call
|
|
494
|
+
var it_1 = this_2.yj_1;
|
|
495
|
+
var tmp$ret$11 = joinToString(it_1);
|
|
496
|
+
tmp_1 = new Left(tmp$ret$11);
|
|
497
|
+
} else {
|
|
498
|
+
noWhenBranchMatchedException();
|
|
509
499
|
}
|
|
510
|
-
var list_1 = ensureNotNull(toNonEmptyListOrNull(destination_6));
|
|
511
|
-
addAll(destination_5, list_1);
|
|
512
500
|
}
|
|
513
|
-
var
|
|
501
|
+
var this_3 = tmp_1;
|
|
502
|
+
var ifLeft = arguments_0.d2k();
|
|
503
|
+
var ifRight = arguments_0.e2k();
|
|
514
504
|
// Inline function 'kotlin.contracts.contract' call
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
505
|
+
var tmp_2;
|
|
506
|
+
if (this_3 instanceof Right) {
|
|
507
|
+
tmp_2 = ifRight(this_3.ek_1);
|
|
508
|
+
} else {
|
|
509
|
+
if (this_3 instanceof Left) {
|
|
510
|
+
tmp_2 = ifLeft(this_3.yj_1);
|
|
511
|
+
} else {
|
|
512
|
+
noWhenBranchMatchedException();
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
return tmp_2;
|
|
519
516
|
}
|
|
520
517
|
function compile$ctx$1($arguments) {
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
518
|
+
this.f2k_1 = $arguments.p2j_1;
|
|
519
|
+
this.g2k_1 = $arguments.l2j_1;
|
|
523
520
|
}
|
|
524
521
|
protoOf(compile$ctx$1).q22 = function () {
|
|
525
|
-
return this.
|
|
522
|
+
return this.f2k_1;
|
|
526
523
|
};
|
|
527
524
|
protoOf(compile$ctx$1).c23 = function () {
|
|
528
|
-
return this.
|
|
525
|
+
return this.g2k_1;
|
|
529
526
|
};
|
|
530
527
|
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
538
|
-
this.
|
|
539
|
-
}
|
|
528
|
+
this.k2j_1 = input;
|
|
529
|
+
this.l2j_1 = emitters;
|
|
530
|
+
this.m2j_1 = writer;
|
|
531
|
+
this.n2j_1 = error;
|
|
532
|
+
this.o2j_1 = packageName;
|
|
533
|
+
this.p2j_1 = logger;
|
|
534
|
+
this.q2j_1 = shared;
|
|
535
|
+
this.r2j_1 = strict;
|
|
536
|
+
}
|
|
537
|
+
protoOf(CompilerArguments).e2k = function () {
|
|
538
|
+
return this.m2j_1;
|
|
539
|
+
};
|
|
540
|
+
protoOf(CompilerArguments).d2k = function () {
|
|
541
|
+
return this.n2j_1;
|
|
542
|
+
};
|
|
540
543
|
protoOf(CompilerArguments).toString = function () {
|
|
541
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
544
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.k2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.l2j_1) + ', writer=' + toString(this.m2j_1) + ', error=' + toString(this.n2j_1) + ', packageName=' + this.o2j_1.toString() + ', logger=' + toString(this.p2j_1) + ', shared=' + this.q2j_1 + ', strict=' + this.r2j_1 + ')';
|
|
542
545
|
};
|
|
543
546
|
protoOf(CompilerArguments).hashCode = function () {
|
|
544
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
545
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
546
|
-
result = imul(result, 31) + hashCode(this.l2j_1) | 0;
|
|
547
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.k2j_1);
|
|
548
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.l2j_1) | 0;
|
|
547
549
|
result = imul(result, 31) + hashCode(this.m2j_1) | 0;
|
|
548
550
|
result = imul(result, 31) + hashCode(this.n2j_1) | 0;
|
|
549
551
|
result = imul(result, 31) + hashCode(this.o2j_1) | 0;
|
|
550
|
-
result = imul(result, 31) +
|
|
552
|
+
result = imul(result, 31) + hashCode(this.p2j_1) | 0;
|
|
551
553
|
result = imul(result, 31) + getBooleanHashCode(this.q2j_1) | 0;
|
|
554
|
+
result = imul(result, 31) + getBooleanHashCode(this.r2j_1) | 0;
|
|
552
555
|
return result;
|
|
553
556
|
};
|
|
554
557
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -557,11 +560,9 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
557
560
|
if (!(other instanceof CompilerArguments))
|
|
558
561
|
return false;
|
|
559
562
|
var tmp0_other_with_cast = other instanceof CompilerArguments ? other : THROW_CCE();
|
|
560
|
-
if (!equals(new NonEmptySet(this.j2j_1), new NonEmptySet(tmp0_other_with_cast.j2j_1)))
|
|
561
|
-
return false;
|
|
562
563
|
if (!equals(new NonEmptySet(this.k2j_1), new NonEmptySet(tmp0_other_with_cast.k2j_1)))
|
|
563
564
|
return false;
|
|
564
|
-
if (!equals(this.l2j_1, tmp0_other_with_cast.l2j_1))
|
|
565
|
+
if (!equals(new NonEmptySet(this.l2j_1), new NonEmptySet(tmp0_other_with_cast.l2j_1)))
|
|
565
566
|
return false;
|
|
566
567
|
if (!equals(this.m2j_1, tmp0_other_with_cast.m2j_1))
|
|
567
568
|
return false;
|
|
@@ -569,36 +570,44 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
569
570
|
return false;
|
|
570
571
|
if (!equals(this.o2j_1, tmp0_other_with_cast.o2j_1))
|
|
571
572
|
return false;
|
|
572
|
-
if (!(this.p2j_1
|
|
573
|
+
if (!equals(this.p2j_1, tmp0_other_with_cast.p2j_1))
|
|
573
574
|
return false;
|
|
574
575
|
if (!(this.q2j_1 === tmp0_other_with_cast.q2j_1))
|
|
575
576
|
return false;
|
|
577
|
+
if (!(this.r2j_1 === tmp0_other_with_cast.r2j_1))
|
|
578
|
+
return false;
|
|
576
579
|
return true;
|
|
577
580
|
};
|
|
578
581
|
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
581
|
-
this.
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
588
|
-
}
|
|
582
|
+
this.u2j_1 = format;
|
|
583
|
+
this.v2j_1 = input;
|
|
584
|
+
this.w2j_1 = emitters;
|
|
585
|
+
this.x2j_1 = writer;
|
|
586
|
+
this.y2j_1 = error;
|
|
587
|
+
this.z2j_1 = packageName;
|
|
588
|
+
this.a2k_1 = logger;
|
|
589
|
+
this.b2k_1 = shared;
|
|
590
|
+
this.c2k_1 = strict;
|
|
591
|
+
}
|
|
592
|
+
protoOf(ConverterArguments).e2k = function () {
|
|
593
|
+
return this.x2j_1;
|
|
594
|
+
};
|
|
595
|
+
protoOf(ConverterArguments).d2k = function () {
|
|
596
|
+
return this.y2j_1;
|
|
597
|
+
};
|
|
589
598
|
protoOf(ConverterArguments).toString = function () {
|
|
590
|
-
return 'ConverterArguments(format=' + this.
|
|
599
|
+
return 'ConverterArguments(format=' + this.u2j_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.v2j_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.w2j_1) + ', writer=' + toString(this.x2j_1) + ', error=' + toString(this.y2j_1) + ', packageName=' + this.z2j_1.toString() + ', logger=' + toString(this.a2k_1) + ', shared=' + this.b2k_1 + ', strict=' + this.c2k_1 + ')';
|
|
591
600
|
};
|
|
592
601
|
protoOf(ConverterArguments).hashCode = function () {
|
|
593
|
-
var result = this.
|
|
594
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.u2j_1) | 0;
|
|
602
|
+
var result = this.u2j_1.hashCode();
|
|
595
603
|
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.v2j_1) | 0;
|
|
596
|
-
result = imul(result, 31) +
|
|
604
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.w2j_1) | 0;
|
|
597
605
|
result = imul(result, 31) + hashCode(this.x2j_1) | 0;
|
|
598
606
|
result = imul(result, 31) + hashCode(this.y2j_1) | 0;
|
|
599
607
|
result = imul(result, 31) + hashCode(this.z2j_1) | 0;
|
|
600
|
-
result = imul(result, 31) +
|
|
608
|
+
result = imul(result, 31) + hashCode(this.a2k_1) | 0;
|
|
601
609
|
result = imul(result, 31) + getBooleanHashCode(this.b2k_1) | 0;
|
|
610
|
+
result = imul(result, 31) + getBooleanHashCode(this.c2k_1) | 0;
|
|
602
611
|
return result;
|
|
603
612
|
};
|
|
604
613
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -607,13 +616,11 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
607
616
|
if (!(other instanceof ConverterArguments))
|
|
608
617
|
return false;
|
|
609
618
|
var tmp0_other_with_cast = other instanceof ConverterArguments ? other : THROW_CCE();
|
|
610
|
-
if (!this.
|
|
611
|
-
return false;
|
|
612
|
-
if (!equals(new NonEmptySet(this.u2j_1), new NonEmptySet(tmp0_other_with_cast.u2j_1)))
|
|
619
|
+
if (!this.u2j_1.equals(tmp0_other_with_cast.u2j_1))
|
|
613
620
|
return false;
|
|
614
621
|
if (!equals(new NonEmptySet(this.v2j_1), new NonEmptySet(tmp0_other_with_cast.v2j_1)))
|
|
615
622
|
return false;
|
|
616
|
-
if (!equals(this.w2j_1, tmp0_other_with_cast.w2j_1))
|
|
623
|
+
if (!equals(new NonEmptySet(this.w2j_1), new NonEmptySet(tmp0_other_with_cast.w2j_1)))
|
|
617
624
|
return false;
|
|
618
625
|
if (!equals(this.x2j_1, tmp0_other_with_cast.x2j_1))
|
|
619
626
|
return false;
|
|
@@ -621,22 +628,24 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
621
628
|
return false;
|
|
622
629
|
if (!equals(this.z2j_1, tmp0_other_with_cast.z2j_1))
|
|
623
630
|
return false;
|
|
624
|
-
if (!(this.a2k_1
|
|
631
|
+
if (!equals(this.a2k_1, tmp0_other_with_cast.a2k_1))
|
|
625
632
|
return false;
|
|
626
633
|
if (!(this.b2k_1 === tmp0_other_with_cast.b2k_1))
|
|
627
634
|
return false;
|
|
635
|
+
if (!(this.c2k_1 === tmp0_other_with_cast.c2k_1))
|
|
636
|
+
return false;
|
|
628
637
|
return true;
|
|
629
638
|
};
|
|
630
639
|
function Source(name, content) {
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
640
|
+
this.s2j_1 = name;
|
|
641
|
+
this.t2j_1 = content;
|
|
633
642
|
}
|
|
634
643
|
protoOf(Source).toString = function () {
|
|
635
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
644
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.s2j_1) + ', content=' + this.t2j_1 + ')';
|
|
636
645
|
};
|
|
637
646
|
protoOf(Source).hashCode = function () {
|
|
638
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
639
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
647
|
+
var result = Name__hashCode_impl_fpc861(this.s2j_1);
|
|
648
|
+
result = imul(result, 31) + getStringHashCode(this.t2j_1) | 0;
|
|
640
649
|
return result;
|
|
641
650
|
};
|
|
642
651
|
protoOf(Source).equals = function (other) {
|
|
@@ -645,10 +654,10 @@ protoOf(Source).equals = function (other) {
|
|
|
645
654
|
if (!(other instanceof Source))
|
|
646
655
|
return false;
|
|
647
656
|
var tmp0_other_with_cast = other instanceof Source ? other : THROW_CCE();
|
|
648
|
-
if (!(this.r2j_1 === tmp0_other_with_cast.r2j_1))
|
|
649
|
-
return false;
|
|
650
657
|
if (!(this.s2j_1 === tmp0_other_with_cast.s2j_1))
|
|
651
658
|
return false;
|
|
659
|
+
if (!(this.t2j_1 === tmp0_other_with_cast.t2j_1))
|
|
660
|
+
return false;
|
|
652
661
|
return true;
|
|
653
662
|
};
|
|
654
663
|
function _Name___init__impl__o4q07e(value) {
|
|
@@ -678,21 +687,21 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
678
687
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
679
688
|
if (!(other instanceof ClassPath))
|
|
680
689
|
return false;
|
|
681
|
-
if (!($this === (other instanceof ClassPath ? other.
|
|
690
|
+
if (!($this === (other instanceof ClassPath ? other.h2k_1 : THROW_CCE())))
|
|
682
691
|
return false;
|
|
683
692
|
return true;
|
|
684
693
|
}
|
|
685
694
|
function ClassPath(value) {
|
|
686
|
-
this.
|
|
695
|
+
this.h2k_1 = value;
|
|
687
696
|
}
|
|
688
697
|
protoOf(ClassPath).toString = function () {
|
|
689
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
698
|
+
return ClassPath__toString_impl_y3ovr8(this.h2k_1);
|
|
690
699
|
};
|
|
691
700
|
protoOf(ClassPath).hashCode = function () {
|
|
692
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
701
|
+
return ClassPath__hashCode_impl_cciyyd(this.h2k_1);
|
|
693
702
|
};
|
|
694
703
|
protoOf(ClassPath).equals = function (other) {
|
|
695
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
704
|
+
return ClassPath__equals_impl_kffpch(this.h2k_1, other);
|
|
696
705
|
};
|
|
697
706
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
698
707
|
return value;
|
|
@@ -709,28 +718,28 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
709
718
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
710
719
|
if (!(other instanceof DirectoryPath))
|
|
711
720
|
return false;
|
|
712
|
-
if (!($this === (other instanceof DirectoryPath ? other.
|
|
721
|
+
if (!($this === (other instanceof DirectoryPath ? other.i2k_1 : THROW_CCE())))
|
|
713
722
|
return false;
|
|
714
723
|
return true;
|
|
715
724
|
}
|
|
716
725
|
function DirectoryPath(value) {
|
|
717
|
-
this.
|
|
726
|
+
this.i2k_1 = value;
|
|
718
727
|
}
|
|
719
728
|
protoOf(DirectoryPath).toString = function () {
|
|
720
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
729
|
+
return DirectoryPath__toString_impl_ym9pdb(this.i2k_1);
|
|
721
730
|
};
|
|
722
731
|
protoOf(DirectoryPath).hashCode = function () {
|
|
723
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
732
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.i2k_1);
|
|
724
733
|
};
|
|
725
734
|
protoOf(DirectoryPath).equals = function (other) {
|
|
726
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
735
|
+
return DirectoryPath__equals_impl_c2rwsc(this.i2k_1, other);
|
|
727
736
|
};
|
|
728
737
|
function Directory(path) {
|
|
729
|
-
this.
|
|
738
|
+
this.j2k_1 = path;
|
|
730
739
|
}
|
|
731
740
|
function Companion_1() {
|
|
732
741
|
}
|
|
733
|
-
protoOf(Companion_1).
|
|
742
|
+
protoOf(Companion_1).k2k = function (input) {
|
|
734
743
|
// Inline function 'kotlin.let' call
|
|
735
744
|
// Inline function 'kotlin.contracts.contract' call
|
|
736
745
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
|
|
@@ -751,7 +760,7 @@ protoOf(Companion_1).h2k = function (input) {
|
|
|
751
760
|
while (tmp0_iterator.h()) {
|
|
752
761
|
var element = tmp0_iterator.i();
|
|
753
762
|
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>.<anonymous>' call
|
|
754
|
-
if (element.
|
|
763
|
+
if (element.j24_1 === ext) {
|
|
755
764
|
tmp$ret$5 = element;
|
|
756
765
|
break $l$block;
|
|
757
766
|
}
|
|
@@ -761,7 +770,9 @@ protoOf(Companion_1).h2k = function (input) {
|
|
|
761
770
|
var tmp0_elvis_lhs = tmp$ret$5;
|
|
762
771
|
var tmp;
|
|
763
772
|
if (tmp0_elvis_lhs == null) {
|
|
764
|
-
|
|
773
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
774
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
775
|
+
var message = 'Invalid file extension: ' + last(list).toLowerCase();
|
|
765
776
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
766
777
|
} else {
|
|
767
778
|
tmp = tmp0_elvis_lhs;
|
|
@@ -777,17 +788,17 @@ function Companion_getInstance_1() {
|
|
|
777
788
|
return Companion_instance_1;
|
|
778
789
|
}
|
|
779
790
|
function FilePath(directory, name, extension) {
|
|
780
|
-
this.
|
|
781
|
-
this.
|
|
782
|
-
this.
|
|
791
|
+
this.l2k_1 = directory;
|
|
792
|
+
this.m2k_1 = name;
|
|
793
|
+
this.n2k_1 = extension;
|
|
783
794
|
}
|
|
784
795
|
protoOf(FilePath).toString = function () {
|
|
785
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
796
|
+
return DirectoryPath__toString_impl_ym9pdb(this.l2k_1) + '/' + _Name___get_value__impl__3tbxxy(this.m2k_1) + '.' + this.n2k_1.j24_1;
|
|
786
797
|
};
|
|
787
798
|
protoOf(FilePath).hashCode = function () {
|
|
788
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
789
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
790
|
-
result = imul(result, 31) + this.
|
|
799
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.l2k_1);
|
|
800
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.m2k_1) | 0;
|
|
801
|
+
result = imul(result, 31) + this.n2k_1.hashCode() | 0;
|
|
791
802
|
return result;
|
|
792
803
|
};
|
|
793
804
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -796,24 +807,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
796
807
|
if (!(other instanceof FilePath))
|
|
797
808
|
return false;
|
|
798
809
|
var tmp0_other_with_cast = other instanceof FilePath ? other : THROW_CCE();
|
|
799
|
-
if (!(this.
|
|
810
|
+
if (!(this.l2k_1 === tmp0_other_with_cast.l2k_1))
|
|
800
811
|
return false;
|
|
801
|
-
if (!(this.
|
|
812
|
+
if (!(this.m2k_1 === tmp0_other_with_cast.m2k_1))
|
|
802
813
|
return false;
|
|
803
|
-
if (!this.
|
|
814
|
+
if (!this.n2k_1.equals(tmp0_other_with_cast.n2k_1))
|
|
804
815
|
return false;
|
|
805
816
|
return true;
|
|
806
817
|
};
|
|
807
818
|
function path(_this__u8e3s4) {
|
|
808
819
|
var tmp;
|
|
809
820
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
810
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
821
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.h2k_1);
|
|
811
822
|
} else {
|
|
812
823
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
813
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
824
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.i2k_1);
|
|
814
825
|
} else {
|
|
815
826
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
816
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
827
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.l2k_1);
|
|
817
828
|
} else {
|
|
818
829
|
noWhenBranchMatchedException();
|
|
819
830
|
}
|
|
@@ -822,7 +833,7 @@ function path(_this__u8e3s4) {
|
|
|
822
833
|
return tmp;
|
|
823
834
|
}
|
|
824
835
|
function IOError(message) {
|
|
825
|
-
this.
|
|
836
|
+
this.o2k_1 = message;
|
|
826
837
|
}
|
|
827
838
|
function WirespecFileError() {
|
|
828
839
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
@@ -858,7 +869,7 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
858
869
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
859
870
|
} else {
|
|
860
871
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
861
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
872
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().v2i(path);
|
|
862
873
|
var tmp_1;
|
|
863
874
|
if (tmp0_elvis_lhs == null) {
|
|
864
875
|
raise.zk(new CannotAccessFileOrDirectory(input));
|
|
@@ -868,10 +879,10 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
868
879
|
var meta = tmp_1;
|
|
869
880
|
var pathString = path.toString();
|
|
870
881
|
var tmp_2;
|
|
871
|
-
if (meta.
|
|
882
|
+
if (meta.y2i_1) {
|
|
872
883
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
873
|
-
} else if (meta.
|
|
874
|
-
tmp_2 = Companion_instance_1.
|
|
884
|
+
} else if (meta.x2i_1) {
|
|
885
|
+
tmp_2 = Companion_instance_1.k2k(pathString);
|
|
875
886
|
} else {
|
|
876
887
|
raise.zk(new IsNotAFileOrDirectory(pathString));
|
|
877
888
|
}
|
|
@@ -914,7 +925,7 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
914
925
|
tmp = _this__u8e3s4.ek_1;
|
|
915
926
|
} else {
|
|
916
927
|
if (_this__u8e3s4 instanceof Left) {
|
|
917
|
-
errorFn(_this__u8e3s4.yj_1.
|
|
928
|
+
errorFn(_this__u8e3s4.yj_1.o2k_1);
|
|
918
929
|
tmp = throwKotlinNothingValueException();
|
|
919
930
|
} else {
|
|
920
931
|
noWhenBranchMatchedException();
|
|
@@ -938,10 +949,10 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
938
949
|
// Inline function 'kotlin.collections.filter' call
|
|
939
950
|
// Inline function 'kotlin.collections.filter' call
|
|
940
951
|
// Inline function 'kotlin.let' call
|
|
941
|
-
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
952
|
+
var this_0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.j2k_1));
|
|
942
953
|
// Inline function 'kotlin.contracts.contract' call
|
|
943
954
|
// Inline function 'kotlin.collections.filterTo' call
|
|
944
|
-
var this_1 = get_SystemFileSystem().
|
|
955
|
+
var this_1 = get_SystemFileSystem().w2i(this_0);
|
|
945
956
|
var destination = ArrayList_init_$Create$_0();
|
|
946
957
|
var tmp0_iterator = this_1.g();
|
|
947
958
|
while (tmp0_iterator.h()) {
|
|
@@ -965,7 +976,7 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
965
976
|
while (tmp0_iterator_1.h()) {
|
|
966
977
|
var item = tmp0_iterator_1.i();
|
|
967
978
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
968
|
-
var tmp$ret$8 = to(Companion_instance_1.
|
|
979
|
+
var tmp$ret$8 = to(Companion_instance_1.k2k(item.toString()), readString(buffered(get_SystemFileSystem().s2i(item))));
|
|
969
980
|
destination_1.e(tmp$ret$8);
|
|
970
981
|
}
|
|
971
982
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -976,7 +987,7 @@ function wirespecSources(_this__u8e3s4) {
|
|
|
976
987
|
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>.<anonymous>' call
|
|
977
988
|
var path = item_0.sd();
|
|
978
989
|
var source = item_0.td();
|
|
979
|
-
var tmp$ret$11 = new Source(path.
|
|
990
|
+
var tmp$ret$11 = new Source(path.m2k_1, source);
|
|
980
991
|
destination_2.e(tmp$ret$11);
|
|
981
992
|
}
|
|
982
993
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
@@ -1017,7 +1028,7 @@ function read(_this__u8e3s4) {
|
|
|
1017
1028
|
// Inline function 'kotlin.contracts.contract' call
|
|
1018
1029
|
// Inline function 'community.flock.wirespec.plugin.io.read.<anonymous>' call
|
|
1019
1030
|
var it = Path(_this__u8e3s4.toString());
|
|
1020
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1031
|
+
return readString(buffered(get_SystemFileSystem().s2i(it)));
|
|
1021
1032
|
}
|
|
1022
1033
|
function getOutPutPath(inputPath, output) {
|
|
1023
1034
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -1036,7 +1047,7 @@ function getOutPutPath(inputPath, output) {
|
|
|
1036
1047
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1037
1048
|
} else {
|
|
1038
1049
|
if (it instanceof DirectoryPath) {
|
|
1039
|
-
tmp_0 = it.
|
|
1050
|
+
tmp_0 = it.i2k_1;
|
|
1040
1051
|
} else {
|
|
1041
1052
|
var tmp_1;
|
|
1042
1053
|
if (it instanceof FilePath) {
|
|
@@ -1082,14 +1093,14 @@ function write(_this__u8e3s4, string) {
|
|
|
1082
1093
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1083
1094
|
// Inline function 'kotlin.contracts.contract' call
|
|
1084
1095
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
|
|
1085
|
-
var tmp0_safe_receiver = this_0.
|
|
1096
|
+
var tmp0_safe_receiver = this_0.b2j();
|
|
1086
1097
|
if (tmp0_safe_receiver == null)
|
|
1087
1098
|
null;
|
|
1088
1099
|
else
|
|
1089
1100
|
createIfNotExists(tmp0_safe_receiver);
|
|
1090
1101
|
// Inline function 'kotlin.contracts.contract' call
|
|
1091
1102
|
// Inline function 'kotlin.apply' call
|
|
1092
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1103
|
+
var this_1 = buffered_0(get_SystemFileSystem().u2i(this_0));
|
|
1093
1104
|
// Inline function 'kotlin.contracts.contract' call
|
|
1094
1105
|
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>.<anonymous>' call
|
|
1095
1106
|
writeString(this_1, string);
|
|
@@ -1101,17 +1112,17 @@ function createIfNotExists(_this__u8e3s4, create) {
|
|
|
1101
1112
|
// Inline function 'kotlin.also' call
|
|
1102
1113
|
// Inline function 'kotlin.contracts.contract' call
|
|
1103
1114
|
// Inline function 'community.flock.wirespec.plugin.io.createIfNotExists.<anonymous>' call
|
|
1104
|
-
if (create && !get_SystemFileSystem().
|
|
1105
|
-
get_SystemFileSystem().
|
|
1115
|
+
if (create && !get_SystemFileSystem().q2i(_this__u8e3s4)) {
|
|
1116
|
+
get_SystemFileSystem().r2i(_this__u8e3s4, true);
|
|
1106
1117
|
}
|
|
1107
1118
|
return _this__u8e3s4;
|
|
1108
1119
|
}
|
|
1109
1120
|
function isWirespecFile(path) {
|
|
1110
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().
|
|
1121
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().j24_1;
|
|
1111
1122
|
}
|
|
1112
1123
|
function isRegularFile(path) {
|
|
1113
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1114
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1124
|
+
var tmp0_safe_receiver = get_SystemFileSystem().v2i(path);
|
|
1125
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x2i_1) === true;
|
|
1115
1126
|
}
|
|
1116
1127
|
function get_extension(_this__u8e3s4) {
|
|
1117
1128
|
return substringAfterLast(_this__u8e3s4.s2(), _Char___init__impl__6a9atx(46), '');
|
|
@@ -1142,6 +1153,7 @@ export {
|
|
|
1142
1153
|
values as values39f22etrsivck,
|
|
1143
1154
|
compile_0 as compile3ocumkpx3p9ko,
|
|
1144
1155
|
convert as convert3g5kyi4d6y9kc,
|
|
1156
|
+
toEmitter as toEmitter3vk7m5bivtqhk,
|
|
1145
1157
|
Language_Kotlin_getInstance as Language_Kotlin_getInstancesf3hf9q9fn0g,
|
|
1146
1158
|
_DirectoryPath___get_value__impl__hdy2e3 as _DirectoryPath___get_value__impl__hdy2e33exlp2vb3n338,
|
|
1147
1159
|
_Name___init__impl__o4q07e as _Name___init__impl__o4q07e3fjy1youl9nku,
|