@flock/wirespec 0.17.20 → 0.18.0-RC.1
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-annotations.mjs.map +1 -1
- package/arrow-arrow-atomic.mjs +13 -13
- package/arrow-arrow-atomic.mjs.map +1 -1
- package/arrow-arrow-core.mjs +594 -431
- package/arrow-arrow-core.mjs.map +1 -1
- package/arrow-arrow-exception-utils.mjs +30 -0
- package/arrow-arrow-exception-utils.mjs.map +1 -0
- package/clikt-clikt-mordant.mjs +318 -0
- package/clikt-clikt-mordant.mjs.map +1 -0
- package/clikt-clikt.mjs +3834 -3696
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +619 -682
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-js-core.mjs +4 -0
- package/kotlin-js-core.mjs.map +1 -0
- package/kotlin-js.mjs +4 -0
- package/kotlin-js.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +6339 -5816
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +8163 -8198
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-plugins-js-plain-objects-runtime.mjs +4 -0
- package/kotlin-plugins-js-plain-objects-runtime.mjs.map +1 -0
- package/kotlin-rgxgen.mjs +2007 -2062
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +4 -0
- package/kotlinx-atomicfu.mjs.map +1 -0
- package/kotlinx-coroutines-core.mjs +4 -0
- package/kotlinx-coroutines-core.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +803 -839
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2483 -2553
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1869 -1928
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant-omnibus.mjs +4 -0
- package/mordant-mordant-omnibus.mjs.map +1 -0
- package/mordant-mordant.mjs +2532 -4425
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +4 -7
- package/seskar-core.mjs +4 -0
- package/seskar-core.mjs.map +1 -0
- package/wirespec-bin.mjs +13 -1
- package/wirespec-fetch.d.ts +4 -1
- package/wirespec-fetch.mjs +34 -0
- package/wirespec-serialization.d.ts +13 -2
- package/wirespec-serialization.mjs +22 -1
- package/wirespec-src-compiler-core.mjs +2856 -3908
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +1344 -413
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +1010 -337
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +1462 -385
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +2247 -0
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -0
- package/wirespec-src-compiler-emitters-scala.mjs +1018 -0
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -0
- package/wirespec-src-compiler-emitters-typescript.mjs +1542 -428
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +123 -145
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +17339 -0
- package/wirespec-src-compiler-ir.mjs.map +1 -0
- package/wirespec-src-compiler-lib.mjs +662 -728
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +630 -656
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +1705 -2024
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +418 -459
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +367 -331
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/{wirespec-src-plugin-npm.d.ts → wirespec-src-plugin-npm.d.mts} +247 -0
- package/wirespec-src-plugin-npm.mjs +166 -359
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +79 -106
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/arrow-arrow-continuations.mjs +0 -18
- package/arrow-arrow-continuations.mjs.map +0 -1
- package/markdown.mjs +0 -6756
- package/markdown.mjs.map +0 -1
|
@@ -3,79 +3,93 @@ import {
|
|
|
3
3
|
protoOf180f3jzyo7rfj as protoOf,
|
|
4
4
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
5
5
|
enumEntries20mr21zbe3az4 as enumEntries,
|
|
6
|
-
|
|
6
|
+
Unit_instance28fytmsmm6r23 as Unit_instance,
|
|
7
7
|
Enum3alwj03lh1n41 as Enum,
|
|
8
8
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
9
|
-
|
|
9
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
10
10
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
11
11
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
12
12
|
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
13
|
-
LinkedHashMap_init_$Create$
|
|
13
|
+
LinkedHashMap_init_$Create$1s75e1k23v4xj as LinkedHashMap_init_$Create$,
|
|
14
14
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
15
|
-
ArrayList_init_$Create$
|
|
16
|
-
|
|
17
|
-
ArrayList_init_$Create$2rimpp4x9tjd3 as ArrayList_init_$Create$_0,
|
|
15
|
+
ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$,
|
|
16
|
+
ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$_0,
|
|
18
17
|
addAll1k27qatfgp3k5 as addAll,
|
|
19
18
|
toString1pkumu07cwy4m as toString,
|
|
20
19
|
hashCodeq5arwsb9dgti as hashCode,
|
|
21
20
|
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
|
|
22
|
-
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
23
21
|
equals2au1ep9vhcato as equals,
|
|
24
22
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
25
23
|
split2bvyvnrlcifjv as split,
|
|
26
24
|
dropLast1vpiyky649o34 as dropLast,
|
|
27
25
|
last1vo29oleiqj36 as last,
|
|
28
26
|
plus310ted5e4i90h as plus,
|
|
29
|
-
IllegalStateException_init_$Create$
|
|
27
|
+
IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
|
|
30
28
|
substringAfter35b3qhto7hchb as substringAfter,
|
|
31
29
|
startsWith26w8qjqapeeq6 as startsWith,
|
|
32
30
|
throwKotlinNothingValueException2lxmvl03dor6f as throwKotlinNothingValueException,
|
|
33
31
|
to2cs3ny02qtbcb as to,
|
|
34
32
|
checkIndexOverflow3frtmheghr0th as checkIndexOverflow,
|
|
35
|
-
|
|
33
|
+
_Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
|
|
36
34
|
substringAfterLast3r0t0my8cpqhk as substringAfterLast,
|
|
37
35
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
38
|
-
import {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
import {
|
|
37
|
+
JavaIrEmittereoab4zj7i4gq as JavaIrEmitter,
|
|
38
|
+
JavaEmitter1ye60adpym6m1 as JavaEmitter,
|
|
39
|
+
} from './wirespec-src-compiler-emitters-java.mjs';
|
|
40
|
+
import {
|
|
41
|
+
KotlinIrEmitterbehcpsqpuupy as KotlinIrEmitter,
|
|
42
|
+
KotlinEmitterddb8247fx90i as KotlinEmitter,
|
|
43
|
+
} from './wirespec-src-compiler-emitters-kotlin.mjs';
|
|
44
|
+
import {
|
|
45
|
+
PythonIrEmittergogj1wcisct7 as PythonIrEmitter,
|
|
46
|
+
PythonEmitter2pjclp0u1gkmn as PythonEmitter,
|
|
47
|
+
} from './wirespec-src-compiler-emitters-python.mjs';
|
|
48
|
+
import { RustIrEmitterluw00jp360tz as RustIrEmitter } from './wirespec-src-compiler-emitters-rust.mjs';
|
|
49
|
+
import { ScalaIrEmitterytuwlk19c8ah as ScalaIrEmitter } from './wirespec-src-compiler-emitters-scala.mjs';
|
|
50
|
+
import {
|
|
51
|
+
TypeScriptIrEmitter3q01omscsvyj9 as TypeScriptIrEmitter,
|
|
52
|
+
TypeScriptEmitter1b8xo1btx35xi as TypeScriptEmitter,
|
|
53
|
+
} from './wirespec-src-compiler-emitters-typescript.mjs';
|
|
42
54
|
import { WirespecEmitter2ad9je4ecrvjk as WirespecEmitter } from './wirespec-src-compiler-emitters-wirespec.mjs';
|
|
43
55
|
import {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
56
|
+
OpenAPIV2Emitter_getInstance102n45c081e7p as OpenAPIV2Emitter_getInstance,
|
|
57
|
+
OpenAPIV3Emitter_getInstance1fafdn8z2657y as OpenAPIV3Emitter_getInstance,
|
|
58
|
+
OpenAPIV2Parser_instance13nnqqmpglx58 as OpenAPIV2Parser_instance,
|
|
59
|
+
OpenAPIV3Parser_instance2np8yf419qqkk as OpenAPIV3Parser_instance,
|
|
48
60
|
} from './wirespec-src-converter-openapi.mjs';
|
|
49
61
|
import {
|
|
50
|
-
|
|
51
|
-
|
|
62
|
+
AvroEmitter_getInstancesm3gayvnct4k as AvroEmitter_getInstance,
|
|
63
|
+
AvroParser_instanceyxg9ykrsu04j as AvroParser_instance,
|
|
52
64
|
} from './wirespec-src-converter-avro.mjs';
|
|
53
65
|
import {
|
|
54
|
-
|
|
55
|
-
|
|
66
|
+
NonEmptySet__map_impl_ngjswdysdff23qrf5g as NonEmptySet__map_impl_ngjswd,
|
|
67
|
+
_NonEmptyList___get_all__impl__pmf5092svcdxelgy1aa as _NonEmptyList___get_all__impl__pmf509,
|
|
68
|
+
_NonEmptyList___init__impl__fxd0xp3qwfhfa83yk9f as _NonEmptyList___init__impl__fxd0xp,
|
|
56
69
|
NonEmptyList3ak25ihy2gcvs as NonEmptyList,
|
|
57
70
|
DefaultRaisevd10gc79qxh8 as DefaultRaise,
|
|
58
71
|
Right351sh2v8odavg as Right,
|
|
59
|
-
nonFatalOrThrow35agffkx4bbtz as nonFatalOrThrow,
|
|
60
72
|
raisedOrRethrow397oyvsdde7oq as raisedOrRethrow,
|
|
61
73
|
Left2oemzq1tpcg4i as Left,
|
|
62
74
|
RaiseCancellationException3n5raogfhbd1l as RaiseCancellationException,
|
|
63
|
-
|
|
64
|
-
|
|
75
|
+
NonEmptySet__flatMap_impl_ovm5jg1j1barqpxmulx as NonEmptySet__flatMap_impl_ovm5jg,
|
|
76
|
+
NonEmptySet__toString_impl_yfcj6n10o2ez3sxh9oh as NonEmptySet__toString_impl_yfcj6n,
|
|
77
|
+
NonEmptySet__hashCode_impl_co6mds289rsl9k37rro as NonEmptySet__hashCode_impl_co6mds,
|
|
65
78
|
NonEmptySet1rtvr2guloo52 as NonEmptySet,
|
|
66
79
|
toNonEmptySetOrNull1tjnd9jrkd4bs as toNonEmptySetOrNull,
|
|
67
80
|
} from './arrow-arrow-core.mjs';
|
|
68
81
|
import {
|
|
69
|
-
FileUri2xjkmf4jmvpab as FileUri,
|
|
70
|
-
ModuleContent750xezzquzy9 as ModuleContent,
|
|
71
82
|
compile2rgmakz9u3swp as compile,
|
|
72
83
|
ParseOptionspl50698nv4gs as ParseOptions,
|
|
73
|
-
|
|
84
|
+
Validator_instance2w1xy20d0awvb as Validator_instance,
|
|
74
85
|
get_spec3cnzsbb1ufwje as get_spec,
|
|
75
86
|
HasLanguageSpec1fo5x3q6dcifj as HasLanguageSpec,
|
|
87
|
+
FileUri2xjkmf4jmvpab as FileUri,
|
|
88
|
+
ModuleContent750xezzquzy9 as ModuleContent,
|
|
76
89
|
get_entries1b334j69qpu9d as get_entries,
|
|
77
|
-
|
|
90
|
+
FileExtension_Wirespec_getInstance29avtvqk6h59d as FileExtension_Wirespec_getInstance,
|
|
78
91
|
} from './wirespec-src-compiler-core.mjs';
|
|
92
|
+
import { nonFatalOrThrow35agffkx4bbtz as nonFatalOrThrow } from './arrow-arrow-exception-utils.mjs';
|
|
79
93
|
import {
|
|
80
94
|
Path21qufdfgaayly as Path,
|
|
81
95
|
get_SystemFileSystemcqw7gp4jhbc7 as get_SystemFileSystem,
|
|
@@ -157,24 +171,25 @@ var Language_Java_instance;
|
|
|
157
171
|
var Language_Kotlin_instance;
|
|
158
172
|
var Language_TypeScript_instance;
|
|
159
173
|
var Language_Python_instance;
|
|
174
|
+
var Language_Rust_instance;
|
|
175
|
+
var Language_Scala_instance;
|
|
160
176
|
var Language_Wirespec_instance;
|
|
161
177
|
var Language_OpenAPIV2_instance;
|
|
162
178
|
var Language_OpenAPIV3_instance;
|
|
163
179
|
var Language_Avro_instance;
|
|
164
180
|
function Companion_0() {
|
|
165
181
|
}
|
|
166
|
-
protoOf(Companion_0).
|
|
182
|
+
protoOf(Companion_0).n3n = function () {
|
|
167
183
|
// Inline function 'kotlin.collections.associateBy' call
|
|
168
184
|
var this_0 = get_entries_1();
|
|
169
185
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
170
186
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
171
187
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
172
|
-
var
|
|
173
|
-
while (
|
|
174
|
-
var element =
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
destination.n2(tmp$ret$0, element);
|
|
188
|
+
var _iterator__ex2g4s = this_0.t();
|
|
189
|
+
while (_iterator__ex2g4s.u()) {
|
|
190
|
+
var element = _iterator__ex2g4s.v();
|
|
191
|
+
var tmp$ret$0 = element.b3_1;
|
|
192
|
+
destination.x2(tmp$ret$0, element);
|
|
178
193
|
}
|
|
179
194
|
return destination;
|
|
180
195
|
};
|
|
@@ -186,7 +201,7 @@ function Companion_getInstance_0() {
|
|
|
186
201
|
return Companion_instance_0;
|
|
187
202
|
}
|
|
188
203
|
function values_0() {
|
|
189
|
-
return [Language_Java_getInstance(), Language_Kotlin_getInstance(), Language_TypeScript_getInstance(), Language_Python_getInstance(), Language_Wirespec_getInstance(), Language_OpenAPIV2_getInstance(), Language_OpenAPIV3_getInstance(), Language_Avro_getInstance()];
|
|
204
|
+
return [Language_Java_getInstance(), Language_Kotlin_getInstance(), Language_TypeScript_getInstance(), Language_Python_getInstance(), Language_Rust_getInstance(), Language_Scala_getInstance(), Language_Wirespec_getInstance(), Language_OpenAPIV2_getInstance(), Language_OpenAPIV3_getInstance(), Language_Avro_getInstance()];
|
|
190
205
|
}
|
|
191
206
|
function get_entries_1() {
|
|
192
207
|
if ($ENTRIES_0 == null)
|
|
@@ -202,18 +217,59 @@ function Language_initEntries() {
|
|
|
202
217
|
Language_Kotlin_instance = new Language('Kotlin', 1);
|
|
203
218
|
Language_TypeScript_instance = new Language('TypeScript', 2);
|
|
204
219
|
Language_Python_instance = new Language('Python', 3);
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
220
|
+
Language_Rust_instance = new Language('Rust', 4);
|
|
221
|
+
Language_Scala_instance = new Language('Scala', 5);
|
|
222
|
+
Language_Wirespec_instance = new Language('Wirespec', 6);
|
|
223
|
+
Language_OpenAPIV2_instance = new Language('OpenAPIV2', 7);
|
|
224
|
+
Language_OpenAPIV3_instance = new Language('OpenAPIV3', 8);
|
|
225
|
+
Language_Avro_instance = new Language('Avro', 9);
|
|
209
226
|
}
|
|
210
227
|
var $ENTRIES_0;
|
|
211
228
|
function Language(name, ordinal) {
|
|
212
229
|
Enum.call(this, name, ordinal);
|
|
213
230
|
}
|
|
231
|
+
function toIrEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
232
|
+
var tmp;
|
|
233
|
+
switch (_this__u8e3s4.c3_1) {
|
|
234
|
+
case 0:
|
|
235
|
+
tmp = new JavaIrEmitter(packageName, emitShared);
|
|
236
|
+
break;
|
|
237
|
+
case 1:
|
|
238
|
+
tmp = new KotlinIrEmitter(packageName, emitShared);
|
|
239
|
+
break;
|
|
240
|
+
case 3:
|
|
241
|
+
tmp = new PythonIrEmitter(packageName, emitShared);
|
|
242
|
+
break;
|
|
243
|
+
case 4:
|
|
244
|
+
tmp = new RustIrEmitter(packageName, emitShared);
|
|
245
|
+
break;
|
|
246
|
+
case 5:
|
|
247
|
+
tmp = new ScalaIrEmitter(packageName, emitShared);
|
|
248
|
+
break;
|
|
249
|
+
case 2:
|
|
250
|
+
tmp = new TypeScriptIrEmitter();
|
|
251
|
+
break;
|
|
252
|
+
case 6:
|
|
253
|
+
tmp = new WirespecEmitter();
|
|
254
|
+
break;
|
|
255
|
+
case 7:
|
|
256
|
+
tmp = OpenAPIV2Emitter_getInstance();
|
|
257
|
+
break;
|
|
258
|
+
case 8:
|
|
259
|
+
tmp = OpenAPIV3Emitter_getInstance();
|
|
260
|
+
break;
|
|
261
|
+
case 9:
|
|
262
|
+
tmp = AvroEmitter_getInstance();
|
|
263
|
+
break;
|
|
264
|
+
default:
|
|
265
|
+
noWhenBranchMatchedException();
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
return tmp;
|
|
269
|
+
}
|
|
214
270
|
function toEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
215
271
|
var tmp;
|
|
216
|
-
switch (_this__u8e3s4.
|
|
272
|
+
switch (_this__u8e3s4.c3_1) {
|
|
217
273
|
case 0:
|
|
218
274
|
tmp = new JavaEmitter(packageName, emitShared);
|
|
219
275
|
break;
|
|
@@ -223,19 +279,25 @@ function toEmitter(_this__u8e3s4, packageName, emitShared) {
|
|
|
223
279
|
case 3:
|
|
224
280
|
tmp = new PythonEmitter(packageName, emitShared);
|
|
225
281
|
break;
|
|
282
|
+
case 4:
|
|
283
|
+
tmp = new RustIrEmitter(packageName, emitShared);
|
|
284
|
+
break;
|
|
285
|
+
case 5:
|
|
286
|
+
tmp = new ScalaIrEmitter(packageName, emitShared);
|
|
287
|
+
break;
|
|
226
288
|
case 2:
|
|
227
289
|
tmp = new TypeScriptEmitter();
|
|
228
290
|
break;
|
|
229
|
-
case
|
|
291
|
+
case 6:
|
|
230
292
|
tmp = new WirespecEmitter();
|
|
231
293
|
break;
|
|
232
|
-
case
|
|
294
|
+
case 7:
|
|
233
295
|
tmp = OpenAPIV2Emitter_getInstance();
|
|
234
296
|
break;
|
|
235
|
-
case
|
|
297
|
+
case 8:
|
|
236
298
|
tmp = OpenAPIV3Emitter_getInstance();
|
|
237
299
|
break;
|
|
238
|
-
case
|
|
300
|
+
case 9:
|
|
239
301
|
tmp = AvroEmitter_getInstance();
|
|
240
302
|
break;
|
|
241
303
|
default:
|
|
@@ -260,6 +322,14 @@ function Language_Python_getInstance() {
|
|
|
260
322
|
Language_initEntries();
|
|
261
323
|
return Language_Python_instance;
|
|
262
324
|
}
|
|
325
|
+
function Language_Rust_getInstance() {
|
|
326
|
+
Language_initEntries();
|
|
327
|
+
return Language_Rust_instance;
|
|
328
|
+
}
|
|
329
|
+
function Language_Scala_getInstance() {
|
|
330
|
+
Language_initEntries();
|
|
331
|
+
return Language_Scala_instance;
|
|
332
|
+
}
|
|
263
333
|
function Language_Wirespec_getInstance() {
|
|
264
334
|
Language_initEntries();
|
|
265
335
|
return Language_Wirespec_instance;
|
|
@@ -278,25 +348,11 @@ function Language_Avro_getInstance() {
|
|
|
278
348
|
}
|
|
279
349
|
function compile_0(arguments_0) {
|
|
280
350
|
var ctx = new compile$ctx$1(arguments_0);
|
|
281
|
-
|
|
282
|
-
var this_0 = arguments_0.r2i_1;
|
|
283
|
-
// Inline function 'kotlin.collections.map' call
|
|
284
|
-
var this_1 = _NonEmptySet___get_elements__impl__g09gj9(this_0);
|
|
285
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
286
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
287
|
-
var tmp0_iterator = this_1.g();
|
|
288
|
-
while (tmp0_iterator.h()) {
|
|
289
|
-
var item = tmp0_iterator.i();
|
|
290
|
-
// Inline function 'community.flock.wirespec.plugin.compile.<anonymous>' call
|
|
291
|
-
var tmp$ret$0 = new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(item.z2i_1)), item.a2j_1);
|
|
292
|
-
destination.e(tmp$ret$0);
|
|
293
|
-
}
|
|
294
|
-
var tmp$ret$3 = ensureNotNull(toNonEmptyListOrNull(destination));
|
|
295
|
-
fold(compile(ctx, tmp$ret$3), arguments_0);
|
|
351
|
+
fold(compile(ctx, NonEmptySet__map_impl_ngjswd(arguments_0.o3n_1, compile$lambda)), arguments_0);
|
|
296
352
|
}
|
|
297
353
|
function convert(arguments_0) {
|
|
298
354
|
var tmp;
|
|
299
|
-
switch (arguments_0.
|
|
355
|
+
switch (arguments_0.x3n_1.c3_1) {
|
|
300
356
|
case 0:
|
|
301
357
|
tmp = OpenAPIV2Parser_instance;
|
|
302
358
|
break;
|
|
@@ -311,261 +367,196 @@ function convert(arguments_0) {
|
|
|
311
367
|
break;
|
|
312
368
|
}
|
|
313
369
|
var parser = tmp;
|
|
314
|
-
var options = new ParseOptions(arguments_0.
|
|
315
|
-
// Inline function 'arrow.core.Either.map' call
|
|
316
|
-
// Inline function 'kotlin.let' call
|
|
317
|
-
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
370
|
+
var options = new ParseOptions(arguments_0.f3o_1);
|
|
318
371
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
319
|
-
|
|
320
|
-
var this_0 = arguments_0.c2j_1;
|
|
372
|
+
var this_0 = NonEmptySet__map_impl_ngjswd(arguments_0.y3n_1, convert$lambda);
|
|
321
373
|
// Inline function 'kotlin.collections.map' call
|
|
322
|
-
var this_1 =
|
|
374
|
+
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
323
375
|
// Inline function 'kotlin.collections.mapTo' call
|
|
324
376
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
325
|
-
var
|
|
326
|
-
while (
|
|
327
|
-
var item =
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
destination.e(tmp$ret$0);
|
|
377
|
+
var _iterator__ex2g4s = this_1.t();
|
|
378
|
+
while (_iterator__ex2g4s.u()) {
|
|
379
|
+
var item = _iterator__ex2g4s.v();
|
|
380
|
+
var tmp$ret$0 = parser.a3i(item, arguments_0.f3o_1);
|
|
381
|
+
destination.x(tmp$ret$0);
|
|
331
382
|
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
var moduleContent = this_2.pk_1;
|
|
335
|
-
var tmp_0 = parser.w2e(moduleContent, arguments_0.j2j_1);
|
|
383
|
+
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
384
|
+
var this_2 = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
336
385
|
// Inline function 'kotlin.collections.map' call
|
|
337
|
-
var this_3 = this_2
|
|
386
|
+
var this_3 = _NonEmptyList___get_all__impl__pmf509(this_2);
|
|
338
387
|
// Inline function 'kotlin.collections.mapTo' call
|
|
339
388
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
340
|
-
var
|
|
341
|
-
while (
|
|
342
|
-
var item_0 =
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
destination_0.e(tmp$ret$5);
|
|
346
|
-
}
|
|
347
|
-
var this_4 = new NonEmptyList(tmp_0, destination_0);
|
|
348
|
-
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
349
|
-
var it = this_4.pk_1;
|
|
350
|
-
var tmp_1 = Validator_instance.r27(options, it);
|
|
351
|
-
// Inline function 'kotlin.collections.map' call
|
|
352
|
-
var this_5 = this_4.qk_1;
|
|
353
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
354
|
-
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_5, 10));
|
|
355
|
-
var tmp0_iterator_1 = this_5.g();
|
|
356
|
-
while (tmp0_iterator_1.h()) {
|
|
357
|
-
var item_1 = tmp0_iterator_1.i();
|
|
358
|
-
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
359
|
-
var tmp$ret$10 = Validator_instance.r27(options, item_1);
|
|
360
|
-
destination_1.e(tmp$ret$10);
|
|
389
|
+
var _iterator__ex2g4s_0 = this_3.t();
|
|
390
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
391
|
+
var item_0 = _iterator__ex2g4s_0.v();
|
|
392
|
+
var tmp$ret$4 = Validator_instance.ts(options, item_0);
|
|
393
|
+
destination_0.x(tmp$ret$4);
|
|
361
394
|
}
|
|
362
|
-
// Inline function 'kotlin.
|
|
363
|
-
|
|
364
|
-
var it_0 = new NonEmptyList(tmp_1, destination_1);
|
|
395
|
+
// Inline function 'kotlin.let' call
|
|
396
|
+
var it = _NonEmptyList___init__impl__fxd0xp(destination_0);
|
|
365
397
|
// Inline function 'arrow.core.raise.either' call
|
|
366
398
|
// Inline function 'arrow.core.raise.fold' call
|
|
367
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
368
399
|
// Inline function 'arrow.core.raise.fold' call
|
|
369
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
370
400
|
var raise = new DefaultRaise(false);
|
|
371
|
-
var
|
|
401
|
+
var tmp_0;
|
|
372
402
|
try {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
raise.lk();
|
|
377
|
-
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
378
|
-
tmp_2 = new Right(res);
|
|
403
|
+
var res = new NonEmptyList(raise.im(it));
|
|
404
|
+
raise.zl();
|
|
405
|
+
tmp_0 = new Right(res);
|
|
379
406
|
} catch ($p) {
|
|
380
|
-
var
|
|
407
|
+
var tmp_1;
|
|
381
408
|
if ($p instanceof RaiseCancellationException) {
|
|
382
409
|
var e = $p;
|
|
383
|
-
raise.
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
tmp_3 = new Left(it_1);
|
|
410
|
+
raise.zl();
|
|
411
|
+
var it_0 = raisedOrRethrow(e, raise);
|
|
412
|
+
tmp_1 = new Left(it_0);
|
|
387
413
|
} else {
|
|
388
414
|
if ($p instanceof Error) {
|
|
389
415
|
var e_0 = $p;
|
|
390
|
-
raise.
|
|
416
|
+
raise.zl();
|
|
391
417
|
throw nonFatalOrThrow(e_0);
|
|
392
418
|
} else {
|
|
393
419
|
throw $p;
|
|
394
420
|
}
|
|
395
421
|
}
|
|
396
|
-
|
|
422
|
+
tmp_0 = tmp_1;
|
|
397
423
|
}
|
|
398
|
-
// Inline function '
|
|
424
|
+
// Inline function 'arrow.core.Either.map' call
|
|
399
425
|
// Inline function 'arrow.core.flatMap' call
|
|
400
|
-
var
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
if (this_6 instanceof Right) {
|
|
404
|
-
// Inline function 'arrow.core.Either.map.<anonymous>' call
|
|
405
|
-
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>' call
|
|
426
|
+
var this_4 = tmp_0;
|
|
427
|
+
var tmp_2;
|
|
428
|
+
if (this_4 instanceof Right) {
|
|
406
429
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
407
|
-
var
|
|
408
|
-
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
409
|
-
var ast = this_7.pk_1;
|
|
410
|
-
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
411
|
-
var this_8 = arguments_0.d2j_1;
|
|
430
|
+
var this_5 = this_4.rl_1.am_1;
|
|
412
431
|
// Inline function 'kotlin.collections.flatMap' call
|
|
432
|
+
var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_5);
|
|
413
433
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
414
|
-
var
|
|
415
|
-
var
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
var
|
|
419
|
-
|
|
420
|
-
var list = element.q22(ast, arguments_0.h2j_1);
|
|
421
|
-
addAll(destination_2, list);
|
|
434
|
+
var destination_1 = ArrayList_init_$Create$_0();
|
|
435
|
+
var _iterator__ex2g4s_1 = tmp0.t();
|
|
436
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
437
|
+
var element = _iterator__ex2g4s_1.v();
|
|
438
|
+
var list = new NonEmptyList(NonEmptySet__flatMap_impl_ovm5jg(arguments_0.z3n_1, convert$lambda_0(element, arguments_0)));
|
|
439
|
+
addAll(destination_1, list);
|
|
422
440
|
}
|
|
423
|
-
var
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
var this_10 = this_7.qk_1;
|
|
427
|
-
var destination_3 = ArrayList_init_$Create$_0();
|
|
428
|
-
var tmp0_iterator_3 = this_10.g();
|
|
429
|
-
while (tmp0_iterator_3.h()) {
|
|
430
|
-
var element_0 = tmp0_iterator_3.i();
|
|
431
|
-
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>' call
|
|
432
|
-
// Inline function 'arrow.core.NonEmptySet.flatMap' call
|
|
433
|
-
var this_11 = arguments_0.d2j_1;
|
|
434
|
-
// Inline function 'kotlin.collections.flatMap' call
|
|
435
|
-
// Inline function 'kotlin.collections.flatMapTo' call
|
|
436
|
-
var this_12 = _NonEmptySet___get_elements__impl__g09gj9(this_11);
|
|
437
|
-
var destination_4 = ArrayList_init_$Create$_0();
|
|
438
|
-
var tmp0_iterator_4 = this_12.g();
|
|
439
|
-
while (tmp0_iterator_4.h()) {
|
|
440
|
-
var element_1 = tmp0_iterator_4.i();
|
|
441
|
-
// Inline function 'community.flock.wirespec.plugin.convert.<anonymous>.<anonymous>.<anonymous>' call
|
|
442
|
-
var list_0 = element_1.q22(element_0, arguments_0.h2j_1);
|
|
443
|
-
addAll(destination_4, list_0);
|
|
444
|
-
}
|
|
445
|
-
var list_1 = ensureNotNull(toNonEmptyListOrNull(destination_4));
|
|
446
|
-
addAll(destination_3, list_1);
|
|
447
|
-
}
|
|
448
|
-
var tmp$ret$36 = tmp_5.uk(destination_3);
|
|
449
|
-
tmp_4 = new Right(tmp$ret$36);
|
|
441
|
+
var tmp$ret$19 = _NonEmptyList___init__impl__fxd0xp(destination_1);
|
|
442
|
+
var tmp$ret$20 = new NonEmptyList(tmp$ret$19);
|
|
443
|
+
tmp_2 = new Right(tmp$ret$20);
|
|
450
444
|
} else {
|
|
451
|
-
if (
|
|
452
|
-
|
|
445
|
+
if (this_4 instanceof Left) {
|
|
446
|
+
tmp_2 = this_4;
|
|
453
447
|
} else {
|
|
454
448
|
noWhenBranchMatchedException();
|
|
455
449
|
}
|
|
456
450
|
}
|
|
457
|
-
var tmp$ret$
|
|
458
|
-
fold(tmp$ret$
|
|
451
|
+
var tmp$ret$23 = tmp_2;
|
|
452
|
+
fold(tmp$ret$23, arguments_0);
|
|
459
453
|
}
|
|
460
454
|
function fold(_this__u8e3s4, arguments_0) {
|
|
461
|
-
// Inline function 'arrow.core.Either.fold' call
|
|
462
|
-
// Inline function 'arrow.core.Either.mapLeft' call
|
|
463
455
|
// Inline function 'arrow.core.Either.mapLeft' call
|
|
464
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
465
|
-
// Inline function 'arrow.core.Either.fold' call
|
|
466
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
467
456
|
var tmp;
|
|
468
|
-
if (_this__u8e3s4 instanceof
|
|
469
|
-
// Inline function 'arrow.core.
|
|
470
|
-
var
|
|
471
|
-
|
|
457
|
+
if (_this__u8e3s4 instanceof Left) {
|
|
458
|
+
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
459
|
+
var this_0 = _this__u8e3s4.pl_1.am_1;
|
|
460
|
+
// Inline function 'kotlin.collections.map' call
|
|
461
|
+
var this_1 = _NonEmptyList___get_all__impl__pmf509(this_0);
|
|
462
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
463
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
464
|
+
var _iterator__ex2g4s = this_1.t();
|
|
465
|
+
while (_iterator__ex2g4s.u()) {
|
|
466
|
+
var item = _iterator__ex2g4s.v();
|
|
467
|
+
var tmp$ret$0 = item.e();
|
|
468
|
+
destination.x(tmp$ret$0);
|
|
469
|
+
}
|
|
470
|
+
var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
|
|
471
|
+
var tmp$ret$4 = new NonEmptyList(tmp$ret$3);
|
|
472
|
+
tmp = new Left(tmp$ret$4);
|
|
472
473
|
} else {
|
|
473
|
-
if (_this__u8e3s4 instanceof
|
|
474
|
-
|
|
475
|
-
// Inline function 'community.flock.wirespec.plugin.fold.<anonymous>' call
|
|
476
|
-
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
477
|
-
var this_0 = _this__u8e3s4.yj_1;
|
|
478
|
-
var tmp_0 = this_0.pk_1.r1();
|
|
479
|
-
// Inline function 'kotlin.collections.map' call
|
|
480
|
-
var this_1 = this_0.qk_1;
|
|
481
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
482
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
483
|
-
var tmp0_iterator = this_1.g();
|
|
484
|
-
while (tmp0_iterator.h()) {
|
|
485
|
-
var item = tmp0_iterator.i();
|
|
486
|
-
var tmp$ret$2 = item.r1();
|
|
487
|
-
destination.e(tmp$ret$2);
|
|
488
|
-
}
|
|
489
|
-
var tmp$ret$6 = new NonEmptyList(tmp_0, destination);
|
|
490
|
-
tmp = new Left(tmp$ret$6);
|
|
474
|
+
if (_this__u8e3s4 instanceof Right) {
|
|
475
|
+
tmp = new Right(_this__u8e3s4.rl_1);
|
|
491
476
|
} else {
|
|
492
477
|
noWhenBranchMatchedException();
|
|
493
478
|
}
|
|
494
479
|
}
|
|
495
|
-
// Inline function '
|
|
496
|
-
// Inline function 'arrow.core.Either.fold' call
|
|
480
|
+
// Inline function 'arrow.core.Either.mapLeft' call
|
|
497
481
|
var this_2 = tmp;
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
tmp_1 = new Right(it_0);
|
|
482
|
+
var tmp_0;
|
|
483
|
+
if (this_2 instanceof Left) {
|
|
484
|
+
var it = this_2.pl_1.am_1;
|
|
485
|
+
var tmp$ret$6 = joinToString(new NonEmptyList(it));
|
|
486
|
+
tmp_0 = new Left(tmp$ret$6);
|
|
504
487
|
} else {
|
|
505
|
-
if (this_2 instanceof
|
|
506
|
-
|
|
507
|
-
// Inline function 'community.flock.wirespec.plugin.fold.<anonymous>' call
|
|
508
|
-
var it_1 = this_2.yj_1;
|
|
509
|
-
var tmp$ret$11 = joinToString(it_1);
|
|
510
|
-
tmp_1 = new Left(tmp$ret$11);
|
|
488
|
+
if (this_2 instanceof Right) {
|
|
489
|
+
tmp_0 = new Right(this_2.rl_1);
|
|
511
490
|
} else {
|
|
512
491
|
noWhenBranchMatchedException();
|
|
513
492
|
}
|
|
514
493
|
}
|
|
515
|
-
var
|
|
516
|
-
var
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
} else {
|
|
494
|
+
var tmp0 = tmp_0;
|
|
495
|
+
var tmp2 = arguments_0.tx();
|
|
496
|
+
// Inline function 'arrow.core.Either.fold' call
|
|
497
|
+
var ifRight = arguments_0.h3o();
|
|
498
|
+
if (tmp0 instanceof Right)
|
|
499
|
+
ifRight(tmp0.rl_1);
|
|
500
|
+
else {
|
|
501
|
+
if (tmp0 instanceof Left)
|
|
502
|
+
tmp2(tmp0.pl_1);
|
|
503
|
+
else {
|
|
526
504
|
noWhenBranchMatchedException();
|
|
527
505
|
}
|
|
528
506
|
}
|
|
529
|
-
return
|
|
507
|
+
return Unit_instance;
|
|
530
508
|
}
|
|
531
509
|
function compile$ctx$1($arguments) {
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
510
|
+
this.i3o_1 = $arguments.t3n_1;
|
|
511
|
+
this.j3o_1 = $arguments.p3n_1;
|
|
534
512
|
}
|
|
535
|
-
protoOf(compile$ctx$1).
|
|
536
|
-
return this.
|
|
513
|
+
protoOf(compile$ctx$1).jn = function () {
|
|
514
|
+
return this.i3o_1;
|
|
537
515
|
};
|
|
538
|
-
protoOf(compile$ctx$1).
|
|
539
|
-
return this.
|
|
516
|
+
protoOf(compile$ctx$1).pn = function () {
|
|
517
|
+
return this.j3o_1;
|
|
540
518
|
};
|
|
541
|
-
function
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
|
|
519
|
+
function compile$lambda(it) {
|
|
520
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.k3o_1)), it.l3o_1);
|
|
521
|
+
}
|
|
522
|
+
function convert$lambda(it) {
|
|
523
|
+
return new ModuleContent(new FileUri(_Name___get_value__impl__3tbxxy(it.k3o_1)), it.l3o_1);
|
|
524
|
+
}
|
|
525
|
+
function convert$lambda_0($ast, $arguments) {
|
|
526
|
+
return function (it) {
|
|
527
|
+
return new NonEmptyList(it.qn($ast, $arguments.d3o_1));
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
function CompilerArguments(input, emitters, writer, error, packageName, logger, shared, strict, ir) {
|
|
531
|
+
this.o3n_1 = input;
|
|
532
|
+
this.p3n_1 = emitters;
|
|
533
|
+
this.q3n_1 = writer;
|
|
534
|
+
this.r3n_1 = error;
|
|
535
|
+
this.s3n_1 = packageName;
|
|
536
|
+
this.t3n_1 = logger;
|
|
537
|
+
this.u3n_1 = shared;
|
|
538
|
+
this.v3n_1 = strict;
|
|
539
|
+
this.w3n_1 = ir;
|
|
540
|
+
}
|
|
541
|
+
protoOf(CompilerArguments).h3o = function () {
|
|
542
|
+
return this.q3n_1;
|
|
553
543
|
};
|
|
554
|
-
protoOf(CompilerArguments).
|
|
555
|
-
return this.
|
|
544
|
+
protoOf(CompilerArguments).tx = function () {
|
|
545
|
+
return this.r3n_1;
|
|
556
546
|
};
|
|
557
547
|
protoOf(CompilerArguments).toString = function () {
|
|
558
|
-
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.
|
|
548
|
+
return 'CompilerArguments(input=' + NonEmptySet__toString_impl_yfcj6n(this.o3n_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.p3n_1) + ', writer=' + toString(this.q3n_1) + ', error=' + toString(this.r3n_1) + ', packageName=' + this.s3n_1.toString() + ', logger=' + toString(this.t3n_1) + ', shared=' + this.u3n_1 + ', strict=' + this.v3n_1 + ', ir=' + this.w3n_1 + ')';
|
|
559
549
|
};
|
|
560
550
|
protoOf(CompilerArguments).hashCode = function () {
|
|
561
|
-
var result = NonEmptySet__hashCode_impl_co6mds(this.
|
|
562
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
563
|
-
result = imul(result, 31) + hashCode(this.
|
|
564
|
-
result = imul(result, 31) + hashCode(this.
|
|
565
|
-
result = imul(result, 31) + hashCode(this.
|
|
566
|
-
result = imul(result, 31) + hashCode(this.
|
|
567
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
568
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
551
|
+
var result = NonEmptySet__hashCode_impl_co6mds(this.o3n_1);
|
|
552
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.p3n_1) | 0;
|
|
553
|
+
result = imul(result, 31) + hashCode(this.q3n_1) | 0;
|
|
554
|
+
result = imul(result, 31) + hashCode(this.r3n_1) | 0;
|
|
555
|
+
result = imul(result, 31) + hashCode(this.s3n_1) | 0;
|
|
556
|
+
result = imul(result, 31) + hashCode(this.t3n_1) | 0;
|
|
557
|
+
result = imul(result, 31) + getBooleanHashCode(this.u3n_1) | 0;
|
|
558
|
+
result = imul(result, 31) + getBooleanHashCode(this.v3n_1) | 0;
|
|
559
|
+
result = imul(result, 31) + getBooleanHashCode(this.w3n_1) | 0;
|
|
569
560
|
return result;
|
|
570
561
|
};
|
|
571
562
|
protoOf(CompilerArguments).equals = function (other) {
|
|
@@ -573,55 +564,58 @@ protoOf(CompilerArguments).equals = function (other) {
|
|
|
573
564
|
return true;
|
|
574
565
|
if (!(other instanceof CompilerArguments))
|
|
575
566
|
return false;
|
|
576
|
-
|
|
577
|
-
|
|
567
|
+
if (!equals(new NonEmptySet(this.o3n_1), new NonEmptySet(other.o3n_1)))
|
|
568
|
+
return false;
|
|
569
|
+
if (!equals(new NonEmptySet(this.p3n_1), new NonEmptySet(other.p3n_1)))
|
|
578
570
|
return false;
|
|
579
|
-
if (!equals(
|
|
571
|
+
if (!equals(this.q3n_1, other.q3n_1))
|
|
580
572
|
return false;
|
|
581
|
-
if (!equals(this.
|
|
573
|
+
if (!equals(this.r3n_1, other.r3n_1))
|
|
582
574
|
return false;
|
|
583
|
-
if (!equals(this.
|
|
575
|
+
if (!equals(this.s3n_1, other.s3n_1))
|
|
584
576
|
return false;
|
|
585
|
-
if (!equals(this.
|
|
577
|
+
if (!equals(this.t3n_1, other.t3n_1))
|
|
586
578
|
return false;
|
|
587
|
-
if (!
|
|
579
|
+
if (!(this.u3n_1 === other.u3n_1))
|
|
588
580
|
return false;
|
|
589
|
-
if (!(this.
|
|
581
|
+
if (!(this.v3n_1 === other.v3n_1))
|
|
590
582
|
return false;
|
|
591
|
-
if (!(this.
|
|
583
|
+
if (!(this.w3n_1 === other.w3n_1))
|
|
592
584
|
return false;
|
|
593
585
|
return true;
|
|
594
586
|
};
|
|
595
|
-
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict) {
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
587
|
+
function ConverterArguments(format, input, emitters, writer, error, packageName, logger, shared, strict, ir) {
|
|
588
|
+
this.x3n_1 = format;
|
|
589
|
+
this.y3n_1 = input;
|
|
590
|
+
this.z3n_1 = emitters;
|
|
591
|
+
this.a3o_1 = writer;
|
|
592
|
+
this.b3o_1 = error;
|
|
593
|
+
this.c3o_1 = packageName;
|
|
594
|
+
this.d3o_1 = logger;
|
|
595
|
+
this.e3o_1 = shared;
|
|
596
|
+
this.f3o_1 = strict;
|
|
597
|
+
this.g3o_1 = ir;
|
|
598
|
+
}
|
|
599
|
+
protoOf(ConverterArguments).h3o = function () {
|
|
600
|
+
return this.a3o_1;
|
|
608
601
|
};
|
|
609
|
-
protoOf(ConverterArguments).
|
|
610
|
-
return this.
|
|
602
|
+
protoOf(ConverterArguments).tx = function () {
|
|
603
|
+
return this.b3o_1;
|
|
611
604
|
};
|
|
612
605
|
protoOf(ConverterArguments).toString = function () {
|
|
613
|
-
return 'ConverterArguments(format=' + this.
|
|
606
|
+
return 'ConverterArguments(format=' + this.x3n_1.toString() + ', input=' + NonEmptySet__toString_impl_yfcj6n(this.y3n_1) + ', emitters=' + NonEmptySet__toString_impl_yfcj6n(this.z3n_1) + ', writer=' + toString(this.a3o_1) + ', error=' + toString(this.b3o_1) + ', packageName=' + this.c3o_1.toString() + ', logger=' + toString(this.d3o_1) + ', shared=' + this.e3o_1 + ', strict=' + this.f3o_1 + ', ir=' + this.g3o_1 + ')';
|
|
614
607
|
};
|
|
615
608
|
protoOf(ConverterArguments).hashCode = function () {
|
|
616
|
-
var result = this.
|
|
617
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
618
|
-
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.
|
|
619
|
-
result = imul(result, 31) + hashCode(this.
|
|
620
|
-
result = imul(result, 31) + hashCode(this.
|
|
621
|
-
result = imul(result, 31) + hashCode(this.
|
|
622
|
-
result = imul(result, 31) + hashCode(this.
|
|
623
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
624
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
609
|
+
var result = this.x3n_1.hashCode();
|
|
610
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.y3n_1) | 0;
|
|
611
|
+
result = imul(result, 31) + NonEmptySet__hashCode_impl_co6mds(this.z3n_1) | 0;
|
|
612
|
+
result = imul(result, 31) + hashCode(this.a3o_1) | 0;
|
|
613
|
+
result = imul(result, 31) + hashCode(this.b3o_1) | 0;
|
|
614
|
+
result = imul(result, 31) + hashCode(this.c3o_1) | 0;
|
|
615
|
+
result = imul(result, 31) + hashCode(this.d3o_1) | 0;
|
|
616
|
+
result = imul(result, 31) + getBooleanHashCode(this.e3o_1) | 0;
|
|
617
|
+
result = imul(result, 31) + getBooleanHashCode(this.f3o_1) | 0;
|
|
618
|
+
result = imul(result, 31) + getBooleanHashCode(this.g3o_1) | 0;
|
|
625
619
|
return result;
|
|
626
620
|
};
|
|
627
621
|
protoOf(ConverterArguments).equals = function (other) {
|
|
@@ -629,37 +623,38 @@ protoOf(ConverterArguments).equals = function (other) {
|
|
|
629
623
|
return true;
|
|
630
624
|
if (!(other instanceof ConverterArguments))
|
|
631
625
|
return false;
|
|
632
|
-
|
|
633
|
-
|
|
626
|
+
if (!this.x3n_1.equals(other.x3n_1))
|
|
627
|
+
return false;
|
|
628
|
+
if (!equals(new NonEmptySet(this.y3n_1), new NonEmptySet(other.y3n_1)))
|
|
634
629
|
return false;
|
|
635
|
-
if (!equals(new NonEmptySet(this.
|
|
630
|
+
if (!equals(new NonEmptySet(this.z3n_1), new NonEmptySet(other.z3n_1)))
|
|
636
631
|
return false;
|
|
637
|
-
if (!equals(
|
|
632
|
+
if (!equals(this.a3o_1, other.a3o_1))
|
|
638
633
|
return false;
|
|
639
|
-
if (!equals(this.
|
|
634
|
+
if (!equals(this.b3o_1, other.b3o_1))
|
|
640
635
|
return false;
|
|
641
|
-
if (!equals(this.
|
|
636
|
+
if (!equals(this.c3o_1, other.c3o_1))
|
|
642
637
|
return false;
|
|
643
|
-
if (!equals(this.
|
|
638
|
+
if (!equals(this.d3o_1, other.d3o_1))
|
|
644
639
|
return false;
|
|
645
|
-
if (!
|
|
640
|
+
if (!(this.e3o_1 === other.e3o_1))
|
|
646
641
|
return false;
|
|
647
|
-
if (!(this.
|
|
642
|
+
if (!(this.f3o_1 === other.f3o_1))
|
|
648
643
|
return false;
|
|
649
|
-
if (!(this.
|
|
644
|
+
if (!(this.g3o_1 === other.g3o_1))
|
|
650
645
|
return false;
|
|
651
646
|
return true;
|
|
652
647
|
};
|
|
653
648
|
function Source(name, content) {
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
649
|
+
this.k3o_1 = name;
|
|
650
|
+
this.l3o_1 = content;
|
|
656
651
|
}
|
|
657
652
|
protoOf(Source).toString = function () {
|
|
658
|
-
return 'Source(name=' + Name__toString_impl_61tomu(this.
|
|
653
|
+
return 'Source(name=' + Name__toString_impl_61tomu(this.k3o_1) + ', content=' + this.l3o_1 + ')';
|
|
659
654
|
};
|
|
660
655
|
protoOf(Source).hashCode = function () {
|
|
661
|
-
var result = Name__hashCode_impl_fpc861(this.
|
|
662
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
656
|
+
var result = Name__hashCode_impl_fpc861(this.k3o_1);
|
|
657
|
+
result = imul(result, 31) + getStringHashCode(this.l3o_1) | 0;
|
|
663
658
|
return result;
|
|
664
659
|
};
|
|
665
660
|
protoOf(Source).equals = function (other) {
|
|
@@ -667,10 +662,9 @@ protoOf(Source).equals = function (other) {
|
|
|
667
662
|
return true;
|
|
668
663
|
if (!(other instanceof Source))
|
|
669
664
|
return false;
|
|
670
|
-
|
|
671
|
-
if (!(this.z2i_1 === tmp0_other_with_cast.z2i_1))
|
|
665
|
+
if (!(this.k3o_1 === other.k3o_1))
|
|
672
666
|
return false;
|
|
673
|
-
if (!(this.
|
|
667
|
+
if (!(this.l3o_1 === other.l3o_1))
|
|
674
668
|
return false;
|
|
675
669
|
return true;
|
|
676
670
|
};
|
|
@@ -701,21 +695,24 @@ function ClassPath__hashCode_impl_cciyyd($this) {
|
|
|
701
695
|
function ClassPath__equals_impl_kffpch($this, other) {
|
|
702
696
|
if (!(other instanceof ClassPath))
|
|
703
697
|
return false;
|
|
704
|
-
if (!($this ===
|
|
698
|
+
if (!($this === other.m3o_1))
|
|
705
699
|
return false;
|
|
706
700
|
return true;
|
|
707
701
|
}
|
|
708
702
|
function ClassPath(value) {
|
|
709
|
-
this.
|
|
703
|
+
this.m3o_1 = value;
|
|
710
704
|
}
|
|
705
|
+
protoOf(ClassPath).n1 = function () {
|
|
706
|
+
return _ClassPath___get_value__impl__lfuxg0(this.m3o_1);
|
|
707
|
+
};
|
|
711
708
|
protoOf(ClassPath).toString = function () {
|
|
712
|
-
return ClassPath__toString_impl_y3ovr8(this.
|
|
709
|
+
return ClassPath__toString_impl_y3ovr8(this.m3o_1);
|
|
713
710
|
};
|
|
714
711
|
protoOf(ClassPath).hashCode = function () {
|
|
715
|
-
return ClassPath__hashCode_impl_cciyyd(this.
|
|
712
|
+
return ClassPath__hashCode_impl_cciyyd(this.m3o_1);
|
|
716
713
|
};
|
|
717
714
|
protoOf(ClassPath).equals = function (other) {
|
|
718
|
-
return ClassPath__equals_impl_kffpch(this.
|
|
715
|
+
return ClassPath__equals_impl_kffpch(this.m3o_1, other);
|
|
719
716
|
};
|
|
720
717
|
function _DirectoryPath___init__impl__5bzkjd(value) {
|
|
721
718
|
return value;
|
|
@@ -732,46 +729,46 @@ function DirectoryPath__hashCode_impl_cv3skg($this) {
|
|
|
732
729
|
function DirectoryPath__equals_impl_c2rwsc($this, other) {
|
|
733
730
|
if (!(other instanceof DirectoryPath))
|
|
734
731
|
return false;
|
|
735
|
-
if (!($this ===
|
|
732
|
+
if (!($this === other.n3o_1))
|
|
736
733
|
return false;
|
|
737
734
|
return true;
|
|
738
735
|
}
|
|
739
736
|
function DirectoryPath(value) {
|
|
740
|
-
this.
|
|
737
|
+
this.n3o_1 = value;
|
|
741
738
|
}
|
|
739
|
+
protoOf(DirectoryPath).n1 = function () {
|
|
740
|
+
return _DirectoryPath___get_value__impl__hdy2e3(this.n3o_1);
|
|
741
|
+
};
|
|
742
742
|
protoOf(DirectoryPath).toString = function () {
|
|
743
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
743
|
+
return DirectoryPath__toString_impl_ym9pdb(this.n3o_1);
|
|
744
744
|
};
|
|
745
745
|
protoOf(DirectoryPath).hashCode = function () {
|
|
746
|
-
return DirectoryPath__hashCode_impl_cv3skg(this.
|
|
746
|
+
return DirectoryPath__hashCode_impl_cv3skg(this.n3o_1);
|
|
747
747
|
};
|
|
748
748
|
protoOf(DirectoryPath).equals = function (other) {
|
|
749
|
-
return DirectoryPath__equals_impl_c2rwsc(this.
|
|
749
|
+
return DirectoryPath__equals_impl_c2rwsc(this.n3o_1, other);
|
|
750
750
|
};
|
|
751
751
|
function Directory(path) {
|
|
752
|
-
this.
|
|
752
|
+
this.o3o_1 = path;
|
|
753
753
|
}
|
|
754
754
|
function Companion_1() {
|
|
755
755
|
}
|
|
756
|
-
protoOf(Companion_1).
|
|
756
|
+
protoOf(Companion_1).p3o = function (input) {
|
|
757
757
|
// Inline function 'kotlin.let' call
|
|
758
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
759
|
-
// Inline function 'community.flock.wirespec.plugin.io.Companion.invoke.<anonymous>' call
|
|
760
758
|
var it = split(input, ['/']);
|
|
761
759
|
var list = plus(dropLast(it, 1), split(last(it), ['.']));
|
|
762
760
|
// Inline function 'kotlin.text.lowercase' call
|
|
763
761
|
// Inline function 'kotlin.js.asDynamic' call
|
|
764
762
|
var ext = last(list).toLowerCase();
|
|
765
763
|
// Inline function 'kotlin.collections.find' call
|
|
766
|
-
var
|
|
764
|
+
var tmp0 = get_entries();
|
|
767
765
|
var tmp$ret$5;
|
|
768
766
|
$l$block: {
|
|
769
767
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
770
|
-
var
|
|
771
|
-
while (
|
|
772
|
-
var element =
|
|
773
|
-
|
|
774
|
-
if (element.p25_1 === ext) {
|
|
768
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
769
|
+
while (_iterator__ex2g4s.u()) {
|
|
770
|
+
var element = _iterator__ex2g4s.v();
|
|
771
|
+
if (element.pq_1 === ext) {
|
|
775
772
|
tmp$ret$5 = element;
|
|
776
773
|
break $l$block;
|
|
777
774
|
}
|
|
@@ -787,9 +784,9 @@ protoOf(Companion_1).r2j = function (input) {
|
|
|
787
784
|
tmp = tmp0_elvis_lhs;
|
|
788
785
|
}
|
|
789
786
|
var extension = tmp;
|
|
790
|
-
var idxOfFileName = list.
|
|
791
|
-
var filename = _Name___init__impl__o4q07e(list.
|
|
792
|
-
var path = joinToString(list.
|
|
787
|
+
var idxOfFileName = list.a1() - 2 | 0;
|
|
788
|
+
var filename = _Name___init__impl__o4q07e(list.f1(idxOfFileName));
|
|
789
|
+
var path = joinToString(list.m2(0, idxOfFileName), '/');
|
|
793
790
|
return new FilePath(_DirectoryPath___init__impl__5bzkjd(path), filename, extension);
|
|
794
791
|
};
|
|
795
792
|
var Companion_instance_1;
|
|
@@ -797,17 +794,17 @@ function Companion_getInstance_1() {
|
|
|
797
794
|
return Companion_instance_1;
|
|
798
795
|
}
|
|
799
796
|
function FilePath(directory, name, extension) {
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
802
|
-
this.
|
|
797
|
+
this.q3o_1 = directory;
|
|
798
|
+
this.r3o_1 = name;
|
|
799
|
+
this.s3o_1 = extension;
|
|
803
800
|
}
|
|
804
801
|
protoOf(FilePath).toString = function () {
|
|
805
|
-
return DirectoryPath__toString_impl_ym9pdb(this.
|
|
802
|
+
return DirectoryPath__toString_impl_ym9pdb(this.q3o_1) + '/' + _Name___get_value__impl__3tbxxy(this.r3o_1) + '.' + this.s3o_1.pq_1;
|
|
806
803
|
};
|
|
807
804
|
protoOf(FilePath).hashCode = function () {
|
|
808
|
-
var result = DirectoryPath__hashCode_impl_cv3skg(this.
|
|
809
|
-
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.
|
|
810
|
-
result = imul(result, 31) + this.
|
|
805
|
+
var result = DirectoryPath__hashCode_impl_cv3skg(this.q3o_1);
|
|
806
|
+
result = imul(result, 31) + Name__hashCode_impl_fpc861(this.r3o_1) | 0;
|
|
807
|
+
result = imul(result, 31) + this.s3o_1.hashCode() | 0;
|
|
811
808
|
return result;
|
|
812
809
|
};
|
|
813
810
|
protoOf(FilePath).equals = function (other) {
|
|
@@ -815,25 +812,24 @@ protoOf(FilePath).equals = function (other) {
|
|
|
815
812
|
return true;
|
|
816
813
|
if (!(other instanceof FilePath))
|
|
817
814
|
return false;
|
|
818
|
-
|
|
819
|
-
if (!(this.s2j_1 === tmp0_other_with_cast.s2j_1))
|
|
815
|
+
if (!(this.q3o_1 === other.q3o_1))
|
|
820
816
|
return false;
|
|
821
|
-
if (!(this.
|
|
817
|
+
if (!(this.r3o_1 === other.r3o_1))
|
|
822
818
|
return false;
|
|
823
|
-
if (!this.
|
|
819
|
+
if (!this.s3o_1.equals(other.s3o_1))
|
|
824
820
|
return false;
|
|
825
821
|
return true;
|
|
826
822
|
};
|
|
827
823
|
function path(_this__u8e3s4) {
|
|
828
824
|
var tmp;
|
|
829
825
|
if (_this__u8e3s4 instanceof ClassPath) {
|
|
830
|
-
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.
|
|
826
|
+
tmp = _ClassPath___get_value__impl__lfuxg0(_this__u8e3s4.m3o_1);
|
|
831
827
|
} else {
|
|
832
828
|
if (_this__u8e3s4 instanceof DirectoryPath) {
|
|
833
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
829
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.n3o_1);
|
|
834
830
|
} else {
|
|
835
831
|
if (_this__u8e3s4 instanceof FilePath) {
|
|
836
|
-
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.
|
|
832
|
+
tmp = _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.q3o_1);
|
|
837
833
|
} else {
|
|
838
834
|
noWhenBranchMatchedException();
|
|
839
835
|
}
|
|
@@ -842,13 +838,13 @@ function path(_this__u8e3s4) {
|
|
|
842
838
|
return tmp;
|
|
843
839
|
}
|
|
844
840
|
function IOError(message) {
|
|
845
|
-
this.
|
|
841
|
+
this.t3o_1 = message;
|
|
846
842
|
}
|
|
847
843
|
function WirespecFileError() {
|
|
848
844
|
SpecificFile.call(this, FileExtension_Wirespec_getInstance());
|
|
849
845
|
}
|
|
850
846
|
function SpecificFile(extension) {
|
|
851
|
-
IOError.call(this, 'No ' + extension.
|
|
847
|
+
IOError.call(this, 'No ' + extension.b3_1 + ' file found');
|
|
852
848
|
}
|
|
853
849
|
function CannotAccessFileOrDirectory(input) {
|
|
854
850
|
IOError.call(this, 'Cannot access file or directory: ' + input + '.');
|
|
@@ -863,14 +859,10 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
863
859
|
createIfNotExists_0 = createIfNotExists_0 === VOID ? false : createIfNotExists_0;
|
|
864
860
|
// Inline function 'arrow.core.raise.either' call
|
|
865
861
|
// Inline function 'arrow.core.raise.fold' call
|
|
866
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
867
862
|
// Inline function 'arrow.core.raise.fold' call
|
|
868
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
869
863
|
var raise = new DefaultRaise(false);
|
|
870
864
|
var tmp;
|
|
871
865
|
try {
|
|
872
|
-
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
873
|
-
// Inline function 'community.flock.wirespec.plugin.io.getFullPath.<anonymous>' call
|
|
874
866
|
var tmp_0;
|
|
875
867
|
if (input == null) {
|
|
876
868
|
tmp_0 = null;
|
|
@@ -878,41 +870,39 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
878
870
|
tmp_0 = new ClassPath(_ClassPath___init__impl__obyw3o(substringAfter(input, 'classpath:')));
|
|
879
871
|
} else {
|
|
880
872
|
var path = createIfNotExists(Path(input), createIfNotExists_0);
|
|
881
|
-
var tmp0_elvis_lhs = get_SystemFileSystem().
|
|
873
|
+
var tmp0_elvis_lhs = get_SystemFileSystem().c3n(path);
|
|
882
874
|
var tmp_1;
|
|
883
875
|
if (tmp0_elvis_lhs == null) {
|
|
884
|
-
raise.
|
|
876
|
+
raise.dm(new CannotAccessFileOrDirectory(input));
|
|
885
877
|
} else {
|
|
886
878
|
tmp_1 = tmp0_elvis_lhs;
|
|
887
879
|
}
|
|
888
880
|
var meta = tmp_1;
|
|
889
881
|
var pathString = path.toString();
|
|
890
882
|
var tmp_2;
|
|
891
|
-
if (meta.
|
|
883
|
+
if (meta.v3m_1) {
|
|
892
884
|
tmp_2 = new DirectoryPath(_DirectoryPath___init__impl__5bzkjd(pathString));
|
|
893
|
-
} else if (meta.
|
|
894
|
-
tmp_2 = Companion_instance_1.
|
|
885
|
+
} else if (meta.u3m_1) {
|
|
886
|
+
tmp_2 = Companion_instance_1.p3o(pathString);
|
|
895
887
|
} else {
|
|
896
|
-
raise.
|
|
888
|
+
raise.dm(new IsNotAFileOrDirectory(pathString));
|
|
897
889
|
}
|
|
898
890
|
tmp_0 = tmp_2;
|
|
899
891
|
}
|
|
900
892
|
var res = tmp_0;
|
|
901
|
-
raise.
|
|
902
|
-
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
893
|
+
raise.zl();
|
|
903
894
|
tmp = new Right(res);
|
|
904
895
|
} catch ($p) {
|
|
905
896
|
var tmp_3;
|
|
906
897
|
if ($p instanceof RaiseCancellationException) {
|
|
907
898
|
var e = $p;
|
|
908
|
-
raise.
|
|
909
|
-
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
899
|
+
raise.zl();
|
|
910
900
|
var it = raisedOrRethrow(e, raise);
|
|
911
901
|
tmp_3 = new Left(it);
|
|
912
902
|
} else {
|
|
913
903
|
if ($p instanceof Error) {
|
|
914
904
|
var e_0 = $p;
|
|
915
|
-
raise.
|
|
905
|
+
raise.zl();
|
|
916
906
|
throw nonFatalOrThrow(e_0);
|
|
917
907
|
} else {
|
|
918
908
|
throw $p;
|
|
@@ -924,18 +914,13 @@ function getFullPath(input, createIfNotExists_0) {
|
|
|
924
914
|
}
|
|
925
915
|
function or(_this__u8e3s4, errorFn) {
|
|
926
916
|
// Inline function 'arrow.core.getOrElse' call
|
|
927
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
928
|
-
// Inline function 'arrow.core.Either.fold' call
|
|
929
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
930
917
|
var tmp;
|
|
931
|
-
if (_this__u8e3s4 instanceof
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
tmp = _this__u8e3s4.ek_1;
|
|
918
|
+
if (_this__u8e3s4 instanceof Left) {
|
|
919
|
+
errorFn(_this__u8e3s4.pl_1.t3o_1);
|
|
920
|
+
tmp = throwKotlinNothingValueException();
|
|
935
921
|
} else {
|
|
936
|
-
if (_this__u8e3s4 instanceof
|
|
937
|
-
|
|
938
|
-
tmp = throwKotlinNothingValueException();
|
|
922
|
+
if (_this__u8e3s4 instanceof Right) {
|
|
923
|
+
tmp = _this__u8e3s4.rl_1;
|
|
939
924
|
} else {
|
|
940
925
|
noWhenBranchMatchedException();
|
|
941
926
|
}
|
|
@@ -945,99 +930,87 @@ function or(_this__u8e3s4, errorFn) {
|
|
|
945
930
|
function wirespecSources(_this__u8e3s4, logger) {
|
|
946
931
|
// Inline function 'arrow.core.raise.either' call
|
|
947
932
|
// Inline function 'arrow.core.raise.fold' call
|
|
948
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
949
933
|
// Inline function 'arrow.core.raise.fold' call
|
|
950
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
951
934
|
var raise = new DefaultRaise(false);
|
|
952
935
|
var tmp;
|
|
953
936
|
try {
|
|
954
|
-
|
|
955
|
-
// Inline function 'community.flock.wirespec.plugin.io.wirespecSources.<anonymous>' call
|
|
956
|
-
// Inline function 'kotlin.collections.map' call
|
|
957
|
-
// Inline function 'kotlin.also' call
|
|
958
|
-
// Inline function 'kotlin.collections.map' call
|
|
959
|
-
// Inline function 'kotlin.collections.filter' call
|
|
960
|
-
// Inline function 'kotlin.collections.filter' call
|
|
937
|
+
var tmp0 = Path(_DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.o3o_1));
|
|
961
938
|
// Inline function 'kotlin.let' call
|
|
962
|
-
|
|
963
|
-
|
|
939
|
+
// Inline function 'kotlin.collections.filter' call
|
|
940
|
+
var tmp0_0 = get_SystemFileSystem().d3n(tmp0);
|
|
964
941
|
// Inline function 'kotlin.collections.filterTo' call
|
|
965
|
-
var this_1 = get_SystemFileSystem().d2i(this_0);
|
|
966
942
|
var destination = ArrayList_init_$Create$_0();
|
|
967
|
-
var
|
|
968
|
-
while (
|
|
969
|
-
var element =
|
|
943
|
+
var _iterator__ex2g4s = tmp0_0.t();
|
|
944
|
+
while (_iterator__ex2g4s.u()) {
|
|
945
|
+
var element = _iterator__ex2g4s.v();
|
|
970
946
|
if (isRegularFile(element)) {
|
|
971
|
-
destination.
|
|
947
|
+
destination.x(element);
|
|
972
948
|
}
|
|
973
949
|
}
|
|
950
|
+
// Inline function 'kotlin.collections.filter' call
|
|
974
951
|
// Inline function 'kotlin.collections.filterTo' call
|
|
975
952
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
976
|
-
var
|
|
977
|
-
while (
|
|
978
|
-
var element_0 =
|
|
953
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
954
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
955
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
979
956
|
if (isWirespecFile(element_0)) {
|
|
980
|
-
destination_0.
|
|
957
|
+
destination_0.x(element_0);
|
|
981
958
|
}
|
|
982
959
|
}
|
|
960
|
+
// Inline function 'kotlin.collections.map' call
|
|
983
961
|
// Inline function 'kotlin.collections.mapTo' call
|
|
984
962
|
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_0, 10));
|
|
985
|
-
var
|
|
986
|
-
while (
|
|
987
|
-
var item =
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
destination_1.e(tmp$ret$8);
|
|
963
|
+
var _iterator__ex2g4s_1 = destination_0.t();
|
|
964
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
965
|
+
var item = _iterator__ex2g4s_1.v();
|
|
966
|
+
var tmp$ret$8 = to(Companion_instance_1.p3o(item.toString()), readString(buffered(get_SystemFileSystem().z3m(item))));
|
|
967
|
+
destination_1.x(tmp$ret$8);
|
|
991
968
|
}
|
|
992
|
-
// Inline function 'kotlin.
|
|
993
|
-
|
|
994
|
-
logger.u25('Found ' + destination_1.j() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.q2j_1));
|
|
969
|
+
// Inline function 'kotlin.also' call
|
|
970
|
+
logger.uq('Found ' + destination_1.a1() + ' file(s) to process in ' + _DirectoryPath___get_value__impl__hdy2e3(_this__u8e3s4.o3o_1));
|
|
995
971
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
996
972
|
var index = 0;
|
|
997
|
-
var
|
|
998
|
-
while (
|
|
999
|
-
var item_0 =
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
logger.u25(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.ee_1.t2j_1) + '.' + item_0.ee_1.u2j_1.p25_1);
|
|
973
|
+
var _iterator__ex2g4s_2 = destination_1.t();
|
|
974
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
975
|
+
var item_0 = _iterator__ex2g4s_2.v();
|
|
976
|
+
var _unary__edvuaz = index;
|
|
977
|
+
index = _unary__edvuaz + 1 | 0;
|
|
978
|
+
var prefix = checkIndexOverflow(_unary__edvuaz) < (destination_1.a1() - 1 | 0) ? '\u251C\u2500\u2500 ' : '\u2514\u2500\u2500 ';
|
|
979
|
+
logger.uq(' ' + prefix + ' ' + _Name___get_value__impl__3tbxxy(item_0.xe_1.r3o_1) + '.' + item_0.xe_1.s3o_1.pq_1);
|
|
1005
980
|
}
|
|
981
|
+
// Inline function 'kotlin.collections.map' call
|
|
1006
982
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1007
983
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_1, 10));
|
|
1008
|
-
var
|
|
1009
|
-
while (
|
|
1010
|
-
var item_1 =
|
|
1011
|
-
|
|
1012
|
-
var
|
|
1013
|
-
var
|
|
1014
|
-
|
|
1015
|
-
destination_2.e(tmp$ret$12);
|
|
984
|
+
var _iterator__ex2g4s_3 = destination_1.t();
|
|
985
|
+
while (_iterator__ex2g4s_3.u()) {
|
|
986
|
+
var item_1 = _iterator__ex2g4s_3.v();
|
|
987
|
+
var path = item_1.oe();
|
|
988
|
+
var source = item_1.pe();
|
|
989
|
+
var tmp$ret$15 = new Source(path.r3o_1, source);
|
|
990
|
+
destination_2.x(tmp$ret$15);
|
|
1016
991
|
}
|
|
1017
992
|
var tmp0_elvis_lhs = toNonEmptySetOrNull(destination_2);
|
|
1018
993
|
var tmp_0;
|
|
1019
994
|
var tmp_1 = tmp0_elvis_lhs;
|
|
1020
995
|
if ((tmp_1 == null ? null : new NonEmptySet(tmp_1)) == null) {
|
|
1021
|
-
raise.
|
|
996
|
+
raise.dm(new WirespecFileError());
|
|
1022
997
|
} else {
|
|
1023
998
|
tmp_0 = tmp0_elvis_lhs;
|
|
1024
999
|
}
|
|
1025
1000
|
var res = new NonEmptySet(tmp_0);
|
|
1026
|
-
raise.
|
|
1027
|
-
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
1001
|
+
raise.zl();
|
|
1028
1002
|
tmp = new Right(res);
|
|
1029
1003
|
} catch ($p) {
|
|
1030
1004
|
var tmp_2;
|
|
1031
1005
|
if ($p instanceof RaiseCancellationException) {
|
|
1032
1006
|
var e = $p;
|
|
1033
|
-
raise.
|
|
1034
|
-
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
1007
|
+
raise.zl();
|
|
1035
1008
|
var it = raisedOrRethrow(e, raise);
|
|
1036
1009
|
tmp_2 = new Left(it);
|
|
1037
1010
|
} else {
|
|
1038
1011
|
if ($p instanceof Error) {
|
|
1039
1012
|
var e_0 = $p;
|
|
1040
|
-
raise.
|
|
1013
|
+
raise.zl();
|
|
1041
1014
|
throw nonFatalOrThrow(e_0);
|
|
1042
1015
|
} else {
|
|
1043
1016
|
throw $p;
|
|
@@ -1049,29 +1022,23 @@ function wirespecSources(_this__u8e3s4, logger) {
|
|
|
1049
1022
|
}
|
|
1050
1023
|
function read(_this__u8e3s4) {
|
|
1051
1024
|
// Inline function 'kotlin.let' call
|
|
1052
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1053
|
-
// Inline function 'community.flock.wirespec.plugin.io.read.<anonymous>' call
|
|
1054
1025
|
var it = Path(_this__u8e3s4.toString());
|
|
1055
|
-
return readString(buffered(get_SystemFileSystem().
|
|
1026
|
+
return readString(buffered(get_SystemFileSystem().z3m(it)));
|
|
1056
1027
|
}
|
|
1057
1028
|
function getOutPutPath(inputPath, output) {
|
|
1058
1029
|
// Inline function 'arrow.core.raise.either' call
|
|
1059
1030
|
// Inline function 'arrow.core.raise.fold' call
|
|
1060
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1061
1031
|
// Inline function 'arrow.core.raise.fold' call
|
|
1062
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1063
1032
|
var raise = new DefaultRaise(false);
|
|
1064
1033
|
var tmp;
|
|
1065
1034
|
try {
|
|
1066
|
-
|
|
1067
|
-
// Inline function 'community.flock.wirespec.plugin.io.getOutPutPath.<anonymous>' call
|
|
1068
|
-
var it = raise.cl(getFullPath(output, true));
|
|
1035
|
+
var it = raise.hm(getFullPath(output, true));
|
|
1069
1036
|
var tmp_0;
|
|
1070
1037
|
if (it == null) {
|
|
1071
1038
|
tmp_0 = _DirectoryPath___init__impl__5bzkjd(path(inputPath) + '/out');
|
|
1072
1039
|
} else {
|
|
1073
1040
|
if (it instanceof DirectoryPath) {
|
|
1074
|
-
tmp_0 = it.
|
|
1041
|
+
tmp_0 = it.n3o_1;
|
|
1075
1042
|
} else {
|
|
1076
1043
|
var tmp_1;
|
|
1077
1044
|
if (it instanceof FilePath) {
|
|
@@ -1080,28 +1047,26 @@ function getOutPutPath(inputPath, output) {
|
|
|
1080
1047
|
tmp_1 = it instanceof ClassPath;
|
|
1081
1048
|
}
|
|
1082
1049
|
if (tmp_1) {
|
|
1083
|
-
raise.
|
|
1050
|
+
raise.dm(new OutputShouldBeADirectory());
|
|
1084
1051
|
} else {
|
|
1085
1052
|
noWhenBranchMatchedException();
|
|
1086
1053
|
}
|
|
1087
1054
|
}
|
|
1088
1055
|
}
|
|
1089
1056
|
var res = new DirectoryPath(tmp_0);
|
|
1090
|
-
raise.
|
|
1091
|
-
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
1057
|
+
raise.zl();
|
|
1092
1058
|
tmp = new Right(res);
|
|
1093
1059
|
} catch ($p) {
|
|
1094
1060
|
var tmp_2;
|
|
1095
1061
|
if ($p instanceof RaiseCancellationException) {
|
|
1096
1062
|
var e = $p;
|
|
1097
|
-
raise.
|
|
1098
|
-
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
1063
|
+
raise.zl();
|
|
1099
1064
|
var it_0 = raisedOrRethrow(e, raise);
|
|
1100
1065
|
tmp_2 = new Left(it_0);
|
|
1101
1066
|
} else {
|
|
1102
1067
|
if ($p instanceof Error) {
|
|
1103
1068
|
var e_0 = $p;
|
|
1104
|
-
raise.
|
|
1069
|
+
raise.zl();
|
|
1105
1070
|
throw nonFatalOrThrow(e_0);
|
|
1106
1071
|
} else {
|
|
1107
1072
|
throw $p;
|
|
@@ -1112,47 +1077,40 @@ function getOutPutPath(inputPath, output) {
|
|
|
1112
1077
|
return tmp;
|
|
1113
1078
|
}
|
|
1114
1079
|
function write(_this__u8e3s4, string) {
|
|
1115
|
-
// Inline function 'kotlin.let' call
|
|
1116
1080
|
// Inline function 'kotlin.also' call
|
|
1117
1081
|
var this_0 = Path(_this__u8e3s4.toString());
|
|
1118
|
-
|
|
1119
|
-
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>' call
|
|
1120
|
-
var tmp0_safe_receiver = this_0.i2i();
|
|
1082
|
+
var tmp0_safe_receiver = this_0.f3n();
|
|
1121
1083
|
if (tmp0_safe_receiver == null)
|
|
1122
1084
|
null;
|
|
1123
1085
|
else
|
|
1124
1086
|
createIfNotExists(tmp0_safe_receiver);
|
|
1125
|
-
// Inline function 'kotlin.
|
|
1087
|
+
// Inline function 'kotlin.let' call
|
|
1126
1088
|
// Inline function 'kotlin.apply' call
|
|
1127
|
-
var this_1 = buffered_0(get_SystemFileSystem().
|
|
1128
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1129
|
-
// Inline function 'community.flock.wirespec.plugin.io.write.<anonymous>.<anonymous>' call
|
|
1089
|
+
var this_1 = buffered_0(get_SystemFileSystem().b3n(this_0));
|
|
1130
1090
|
writeString(this_1, string);
|
|
1131
|
-
this_1.
|
|
1091
|
+
this_1.z8();
|
|
1132
1092
|
return Unit_instance;
|
|
1133
1093
|
}
|
|
1134
1094
|
function createIfNotExists(_this__u8e3s4, create) {
|
|
1135
1095
|
create = create === VOID ? true : create;
|
|
1136
1096
|
// Inline function 'kotlin.also' call
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
if (create && !get_SystemFileSystem().x2h(_this__u8e3s4)) {
|
|
1140
|
-
get_SystemFileSystem().y2h(_this__u8e3s4, true);
|
|
1097
|
+
if (create && !get_SystemFileSystem().x3m(_this__u8e3s4)) {
|
|
1098
|
+
get_SystemFileSystem().y3m(_this__u8e3s4, true);
|
|
1141
1099
|
}
|
|
1142
1100
|
return _this__u8e3s4;
|
|
1143
1101
|
}
|
|
1144
|
-
function isWirespecFile(path) {
|
|
1145
|
-
return get_extension(path) === FileExtension_Wirespec_getInstance().p25_1;
|
|
1146
|
-
}
|
|
1147
1102
|
function isRegularFile(path) {
|
|
1148
|
-
var tmp0_safe_receiver = get_SystemFileSystem().
|
|
1149
|
-
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1103
|
+
var tmp0_safe_receiver = get_SystemFileSystem().c3n(path);
|
|
1104
|
+
return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u3m_1) === true;
|
|
1105
|
+
}
|
|
1106
|
+
function isWirespecFile(path) {
|
|
1107
|
+
return get_extension(path) === FileExtension_Wirespec_getInstance().pq_1;
|
|
1150
1108
|
}
|
|
1151
1109
|
function get_extension(_this__u8e3s4) {
|
|
1152
|
-
return substringAfterLast(_this__u8e3s4.
|
|
1110
|
+
return substringAfterLast(_this__u8e3s4.m(), _Char___init__impl__6a9atx(46), '');
|
|
1153
1111
|
}
|
|
1154
1112
|
//region block: post-declaration
|
|
1155
|
-
protoOf(compile$ctx$1).
|
|
1113
|
+
protoOf(compile$ctx$1).in = get_spec;
|
|
1156
1114
|
//endregion
|
|
1157
1115
|
//region block: init
|
|
1158
1116
|
Companion_instance = new Companion();
|
|
@@ -1178,11 +1136,12 @@ export {
|
|
|
1178
1136
|
compile_0 as compile3ocumkpx3p9ko,
|
|
1179
1137
|
convert as convert3g5kyi4d6y9kc,
|
|
1180
1138
|
toEmitter as toEmitter3vk7m5bivtqhk,
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1139
|
+
toIrEmitter as toIrEmitter26636pwh5dqqw,
|
|
1140
|
+
Language_Kotlin_getInstance as Language_Kotlin_getInstance86uxb9qtensx,
|
|
1141
|
+
_DirectoryPath___get_value__impl__hdy2e3 as _DirectoryPath___get_value__impl__hdy2e33f4bkvzwyu6et,
|
|
1142
|
+
_Name___init__impl__o4q07e as _Name___init__impl__o4q07e2eria0k23tn4,
|
|
1143
|
+
Companion_instance_1 as Companion_instance2lab4vlj8rrht,
|
|
1144
|
+
Companion_instance_0 as Companion_instance1z5eikg0ignsi,
|
|
1186
1145
|
};
|
|
1187
1146
|
//endregion
|
|
1188
1147
|
|