@magnusopera/fscript 0.92.2 → 0.92.3
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.
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
|
|
2
|
+
import { Union } from "../fable_modules/fable-library-js.5.27.0/Types.js";
|
|
3
|
+
import { union_type, list_type, string_type, bool_type } from "../fable_modules/fable-library-js.5.27.0/Reflection.js";
|
|
4
|
+
import { value as value_5, toArray, defaultArg } from "../fable_modules/fable-library-js.5.27.0/Option.js";
|
|
5
|
+
import { FSharpMap__TryFind, ofList, toList, tryFind } from "../fable_modules/fable-library-js.5.27.0/Map.js";
|
|
6
|
+
import { exists, length, splitAt, append, tryPick, cons, tryFind as tryFind_1, choose, map, forAll as forAll_1, head as head_7, tail as tail_13, isEmpty, map2, singleton, ofArray, empty, unzip } from "../fable_modules/fable-library-js.5.27.0/List.js";
|
|
7
|
+
import { forAll, singleton as singleton_1, collect, delay, toList as toList_1 } from "../fable_modules/fable-library-js.5.27.0/Seq.js";
|
|
8
|
+
import { compare, curry2, equals, comparePrimitives } from "../fable_modules/fable-library-js.5.27.0/Util.js";
|
|
9
|
+
import { addToSet } from "../fable_modules/fable-library-js.5.27.0/MapUtil.js";
|
|
10
|
+
import { contains, ofList as ofList_1 } from "../fable_modules/fable-library-js.5.27.0/Set.js";
|
|
11
|
+
import { concat, join } from "../fable_modules/fable-library-js.5.27.0/String.js";
|
|
12
|
+
import { TypeException, TypeError$ } from "./Error.js";
|
|
13
|
+
|
|
14
|
+
class Constructor extends Union {
|
|
15
|
+
constructor(tag, fields) {
|
|
16
|
+
super();
|
|
17
|
+
this.tag = tag;
|
|
18
|
+
this.fields = fields;
|
|
19
|
+
}
|
|
20
|
+
cases() {
|
|
21
|
+
return ["Boolean", "EmptyOption", "PresentOption", "EmptyList", "NonEmptyList", "Tuple", "Record", "EmptyMap", "NonEmptyMap", "UnionCase"];
|
|
22
|
+
}
|
|
23
|
+
static EmptyOption = new Constructor(1, []);
|
|
24
|
+
static PresentOption = new Constructor(2, []);
|
|
25
|
+
static EmptyList = new Constructor(3, []);
|
|
26
|
+
static NonEmptyList = new Constructor(4, []);
|
|
27
|
+
static Tuple = new Constructor(5, []);
|
|
28
|
+
static EmptyMap = new Constructor(7, []);
|
|
29
|
+
static NonEmptyMap = new Constructor(8, []);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function Constructor_$reflection() {
|
|
33
|
+
return union_type("FScript.Language.MatchCoverage.Constructor", [], Constructor, () => [[["Item", bool_type]], [], [], [], [], [], [["Item", list_type(string_type)]], [], [], [["Item", string_type]]]);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
class CoveragePattern extends Union {
|
|
37
|
+
constructor(tag, fields) {
|
|
38
|
+
super();
|
|
39
|
+
this.tag = tag;
|
|
40
|
+
this.fields = fields;
|
|
41
|
+
}
|
|
42
|
+
cases() {
|
|
43
|
+
return ["Any", "Constructed", "Restricted"];
|
|
44
|
+
}
|
|
45
|
+
static Any = new CoveragePattern(0, []);
|
|
46
|
+
static Restricted = new CoveragePattern(2, []);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function CoveragePattern_$reflection() {
|
|
50
|
+
return union_type("FScript.Language.MatchCoverage.CoveragePattern", [], CoveragePattern, () => [[], [["Item1", Constructor_$reflection()], ["Item2", list_type(CoveragePattern_$reflection())]], []]);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function expandType(typeDefs, _arg) {
|
|
54
|
+
if (_arg.tag === 12) {
|
|
55
|
+
return defaultArg(tryFind(_arg.fields[0], typeDefs), _arg);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
return _arg;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function recordConstructor(fields) {
|
|
63
|
+
const patternInput = unzip(toList(fields));
|
|
64
|
+
return [new Constructor(/* Record */ 6, [patternInput[0]]), patternInput[1]];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function constructors(_arg) {
|
|
68
|
+
let matchResult, fields;
|
|
69
|
+
switch (_arg.tag) {
|
|
70
|
+
case 3: {
|
|
71
|
+
matchResult = 0;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
case 10: {
|
|
75
|
+
matchResult = 1;
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
case 5: {
|
|
79
|
+
matchResult = 2;
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
case 7: {
|
|
83
|
+
matchResult = 3;
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
case 8: {
|
|
87
|
+
matchResult = 4;
|
|
88
|
+
fields = _arg.fields[0];
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
case 18: {
|
|
92
|
+
matchResult = 4;
|
|
93
|
+
fields = _arg.fields[1];
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
case 17: {
|
|
97
|
+
matchResult = 4;
|
|
98
|
+
fields = _arg.fields[1];
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
case 9: {
|
|
102
|
+
matchResult = 5;
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
case 13: {
|
|
106
|
+
matchResult = 6;
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
default:
|
|
110
|
+
matchResult = 7;
|
|
111
|
+
}
|
|
112
|
+
switch (matchResult) {
|
|
113
|
+
case 0:
|
|
114
|
+
return ofArray([[new Constructor(/* Boolean */ 0, [false]), empty()], [new Constructor(/* Boolean */ 0, [true]), empty()]]);
|
|
115
|
+
case 1:
|
|
116
|
+
return ofArray([[Constructor.EmptyOption, empty()], [Constructor.PresentOption, singleton(_arg.fields[0])]]);
|
|
117
|
+
case 2:
|
|
118
|
+
return ofArray([[Constructor.EmptyList, empty()], [Constructor.NonEmptyList, ofArray([_arg.fields[0], _arg])]]);
|
|
119
|
+
case 3:
|
|
120
|
+
return singleton([Constructor.Tuple, _arg.fields[0]]);
|
|
121
|
+
case 4:
|
|
122
|
+
return singleton(recordConstructor(fields));
|
|
123
|
+
case 5:
|
|
124
|
+
return ofArray([[Constructor.EmptyMap, empty()], [Constructor.NonEmptyMap, empty()]]);
|
|
125
|
+
case 6:
|
|
126
|
+
return toList_1(delay(() => collect((matchValue) => {
|
|
127
|
+
const activePatternResult = matchValue;
|
|
128
|
+
return singleton_1([new Constructor(/* UnionCase */ 9, [activePatternResult[0]]), ofArray(toArray(activePatternResult[1]))]);
|
|
129
|
+
}, _arg.fields[1])));
|
|
130
|
+
default:
|
|
131
|
+
return empty();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function check(typeDefs, targetType, cases, span) {
|
|
136
|
+
const normalize = (typ, pattern) => {
|
|
137
|
+
let matchValue_3, pattern_1, payloadType;
|
|
138
|
+
const typ_1 = expandType(typeDefs, typ);
|
|
139
|
+
let matchResult, value_1, item, itemType, head, itemType_1, tail_1, itemTypes, items, fields, types, name_1, payload, types_1, key_1, keyType_1, tail_2, value_2, valueType_1;
|
|
140
|
+
switch (pattern.tag) {
|
|
141
|
+
case 0:
|
|
142
|
+
case 1: {
|
|
143
|
+
matchResult = 0;
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
case 9: {
|
|
147
|
+
matchResult = 2;
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
case 3: {
|
|
151
|
+
matchResult = 4;
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
case 2: {
|
|
155
|
+
if (pattern.fields[0].tag === 2) {
|
|
156
|
+
matchResult = 1;
|
|
157
|
+
value_1 = pattern.fields[0].fields[0];
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
matchResult = 11;
|
|
161
|
+
}
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
case 8: {
|
|
165
|
+
if (typ_1.tag === 10) {
|
|
166
|
+
matchResult = 3;
|
|
167
|
+
item = pattern.fields[0];
|
|
168
|
+
itemType = typ_1.fields[0];
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
matchResult = 11;
|
|
172
|
+
}
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
case 4: {
|
|
176
|
+
if (typ_1.tag === 5) {
|
|
177
|
+
matchResult = 5;
|
|
178
|
+
head = pattern.fields[0];
|
|
179
|
+
itemType_1 = typ_1.fields[0];
|
|
180
|
+
tail_1 = pattern.fields[1];
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
matchResult = 11;
|
|
184
|
+
}
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
case 5: {
|
|
188
|
+
if (typ_1.tag === 7) {
|
|
189
|
+
matchResult = 6;
|
|
190
|
+
itemTypes = typ_1.fields[0];
|
|
191
|
+
items = pattern.fields[0];
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
matchResult = 11;
|
|
195
|
+
}
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
case 6: {
|
|
199
|
+
switch (typ_1.tag) {
|
|
200
|
+
case 8: {
|
|
201
|
+
matchResult = 7;
|
|
202
|
+
fields = pattern.fields[0];
|
|
203
|
+
types = typ_1.fields[0];
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
case 18: {
|
|
207
|
+
matchResult = 7;
|
|
208
|
+
fields = pattern.fields[0];
|
|
209
|
+
types = typ_1.fields[1];
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
case 17: {
|
|
213
|
+
matchResult = 7;
|
|
214
|
+
fields = pattern.fields[0];
|
|
215
|
+
types = typ_1.fields[1];
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
default:
|
|
219
|
+
matchResult = 11;
|
|
220
|
+
}
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
case 10: {
|
|
224
|
+
if (typ_1.tag === 13) {
|
|
225
|
+
matchResult = 8;
|
|
226
|
+
name_1 = pattern.fields[1];
|
|
227
|
+
payload = pattern.fields[2];
|
|
228
|
+
types_1 = typ_1.fields[1];
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
matchResult = 11;
|
|
232
|
+
}
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
case 7: {
|
|
236
|
+
if (!isEmpty(pattern.fields[0])) {
|
|
237
|
+
if (isEmpty(tail_13(pattern.fields[0]))) {
|
|
238
|
+
if (typ_1.tag === 9) {
|
|
239
|
+
if ((equals(normalize(typ_1.fields[0], head_7(pattern.fields[0])[0]), CoveragePattern.Any) && equals(normalize(typ_1.fields[1], head_7(pattern.fields[0])[1]), CoveragePattern.Any)) && forAll((rest) => equals(normalize(typ_1, rest), CoveragePattern.Any), toArray(pattern.fields[1]))) {
|
|
240
|
+
matchResult = 10;
|
|
241
|
+
key_1 = head_7(pattern.fields[0])[0];
|
|
242
|
+
keyType_1 = typ_1.fields[0];
|
|
243
|
+
tail_2 = pattern.fields[1];
|
|
244
|
+
value_2 = head_7(pattern.fields[0])[1];
|
|
245
|
+
valueType_1 = typ_1.fields[1];
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
matchResult = 11;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
matchResult = 11;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
matchResult = 11;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
else if (pattern.fields[1] == null) {
|
|
260
|
+
matchResult = 9;
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
matchResult = 11;
|
|
264
|
+
}
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
default:
|
|
268
|
+
matchResult = 11;
|
|
269
|
+
}
|
|
270
|
+
switch (matchResult) {
|
|
271
|
+
case 0:
|
|
272
|
+
return CoveragePattern.Any;
|
|
273
|
+
case 1:
|
|
274
|
+
return new CoveragePattern(/* Constructed */ 1, [new Constructor(/* Boolean */ 0, [value_1]), empty()]);
|
|
275
|
+
case 2:
|
|
276
|
+
return new CoveragePattern(/* Constructed */ 1, [Constructor.EmptyOption, empty()]);
|
|
277
|
+
case 3:
|
|
278
|
+
return new CoveragePattern(/* Constructed */ 1, [Constructor.PresentOption, singleton(normalize(itemType, item))]);
|
|
279
|
+
case 4:
|
|
280
|
+
return new CoveragePattern(/* Constructed */ 1, [Constructor.EmptyList, empty()]);
|
|
281
|
+
case 5:
|
|
282
|
+
return new CoveragePattern(/* Constructed */ 1, [Constructor.NonEmptyList, ofArray([normalize(itemType_1, head), normalize(typ_1, tail_1)])]);
|
|
283
|
+
case 6:
|
|
284
|
+
return new CoveragePattern(/* Constructed */ 1, [Constructor.Tuple, map2(normalize, itemTypes, items)]);
|
|
285
|
+
case 7: {
|
|
286
|
+
const patterns = ofList(fields, {
|
|
287
|
+
Compare: (x, y) => (comparePrimitives(x, y) | 0),
|
|
288
|
+
});
|
|
289
|
+
const items_1 = toList_1(delay(() => collect((matchValue_1) => {
|
|
290
|
+
let matchValue_2;
|
|
291
|
+
const activePatternResult = matchValue_1;
|
|
292
|
+
return singleton_1((matchValue_2 = tryFind(activePatternResult[0], patterns), (matchValue_2 == null) ? CoveragePattern.Any : normalize(activePatternResult[1], matchValue_2)));
|
|
293
|
+
}, types)));
|
|
294
|
+
return new CoveragePattern(/* Constructed */ 1, [recordConstructor(types)[0], items_1]);
|
|
295
|
+
}
|
|
296
|
+
case 8:
|
|
297
|
+
return new CoveragePattern(/* Constructed */ 1, [new Constructor(/* UnionCase */ 9, [name_1]), (matchValue_3 = FSharpMap__TryFind(types_1, name_1), (matchValue_3 != null) ? ((value_5(matchValue_3) != null) ? ((payload != null) ? ((pattern_1 = payload, (payloadType = value_5(matchValue_3), singleton(normalize(payloadType, pattern_1))))) : empty()) : empty()) : empty())]);
|
|
298
|
+
case 9:
|
|
299
|
+
return new CoveragePattern(/* Constructed */ 1, [Constructor.EmptyMap, empty()]);
|
|
300
|
+
case 10:
|
|
301
|
+
return new CoveragePattern(/* Constructed */ 1, [Constructor.NonEmptyMap, empty()]);
|
|
302
|
+
default:
|
|
303
|
+
return CoveragePattern.Restricted;
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
const uniqueBindings = (names_mut, _arg_mut) => {
|
|
307
|
+
uniqueBindings:
|
|
308
|
+
while (true) {
|
|
309
|
+
const names = names_mut, _arg = _arg_mut;
|
|
310
|
+
let f2;
|
|
311
|
+
let matchResult_1, name_2, item_1, head_1, tail_3, items_3, fields_1, entries, tail_4;
|
|
312
|
+
switch (_arg.tag) {
|
|
313
|
+
case 1: {
|
|
314
|
+
matchResult_1 = 0;
|
|
315
|
+
name_2 = _arg.fields[0];
|
|
316
|
+
break;
|
|
317
|
+
}
|
|
318
|
+
case 8: {
|
|
319
|
+
matchResult_1 = 1;
|
|
320
|
+
item_1 = _arg.fields[0];
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
case 10: {
|
|
324
|
+
if (_arg.fields[2] != null) {
|
|
325
|
+
matchResult_1 = 1;
|
|
326
|
+
item_1 = _arg.fields[2];
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
matchResult_1 = 6;
|
|
330
|
+
}
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
case 4: {
|
|
334
|
+
matchResult_1 = 2;
|
|
335
|
+
head_1 = _arg.fields[0];
|
|
336
|
+
tail_3 = _arg.fields[1];
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
case 5: {
|
|
340
|
+
matchResult_1 = 3;
|
|
341
|
+
items_3 = _arg.fields[0];
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
case 6: {
|
|
345
|
+
matchResult_1 = 4;
|
|
346
|
+
fields_1 = _arg.fields[0];
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
case 7: {
|
|
350
|
+
matchResult_1 = 5;
|
|
351
|
+
entries = _arg.fields[0];
|
|
352
|
+
tail_4 = _arg.fields[1];
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
default:
|
|
356
|
+
matchResult_1 = 6;
|
|
357
|
+
}
|
|
358
|
+
switch (matchResult_1) {
|
|
359
|
+
case 0:
|
|
360
|
+
return addToSet(name_2, names);
|
|
361
|
+
case 1: {
|
|
362
|
+
names_mut = names;
|
|
363
|
+
_arg_mut = item_1;
|
|
364
|
+
continue uniqueBindings;
|
|
365
|
+
}
|
|
366
|
+
case 2:
|
|
367
|
+
if (uniqueBindings(names, head_1)) {
|
|
368
|
+
names_mut = names;
|
|
369
|
+
_arg_mut = tail_3;
|
|
370
|
+
continue uniqueBindings;
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
return false;
|
|
374
|
+
}
|
|
375
|
+
case 3:
|
|
376
|
+
return forAll_1(curry2(uniqueBindings)(names), items_3);
|
|
377
|
+
case 4:
|
|
378
|
+
return forAll_1((f2 = curry2(uniqueBindings)(names), (arg) => f2(arg[1])), fields_1);
|
|
379
|
+
case 5:
|
|
380
|
+
if (forAll_1((tupledArg) => {
|
|
381
|
+
if (uniqueBindings(names, tupledArg[0])) {
|
|
382
|
+
return uniqueBindings(names, tupledArg[1]);
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
return false;
|
|
386
|
+
}
|
|
387
|
+
}, entries)) {
|
|
388
|
+
return forAll(curry2(uniqueBindings)(names), toArray(tail_4));
|
|
389
|
+
}
|
|
390
|
+
else {
|
|
391
|
+
return false;
|
|
392
|
+
}
|
|
393
|
+
default:
|
|
394
|
+
return true;
|
|
395
|
+
}
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
const wildcards = (types_2) => map((_arg_1) => CoveragePattern.Any, types_2);
|
|
400
|
+
const uncovered = (types_3, rows) => {
|
|
401
|
+
let tail_7;
|
|
402
|
+
if (!isEmpty(types_3)) {
|
|
403
|
+
const rest_1 = tail_13(types_3);
|
|
404
|
+
const defaultRows = choose((_arg_2) => {
|
|
405
|
+
let matchResult_2, tail_5;
|
|
406
|
+
if (!isEmpty(_arg_2)) {
|
|
407
|
+
if (head_7(_arg_2).tag === 0) {
|
|
408
|
+
matchResult_2 = 0;
|
|
409
|
+
tail_5 = tail_13(_arg_2);
|
|
410
|
+
}
|
|
411
|
+
else {
|
|
412
|
+
matchResult_2 = 1;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
matchResult_2 = 1;
|
|
417
|
+
}
|
|
418
|
+
switch (matchResult_2) {
|
|
419
|
+
case 0:
|
|
420
|
+
return tail_5;
|
|
421
|
+
default:
|
|
422
|
+
return undefined;
|
|
423
|
+
}
|
|
424
|
+
}, rows);
|
|
425
|
+
const heads = ofList_1(choose((_arg_3) => {
|
|
426
|
+
let matchResult_3, head_2;
|
|
427
|
+
if (!isEmpty(_arg_3)) {
|
|
428
|
+
if (head_7(_arg_3).tag === 1) {
|
|
429
|
+
matchResult_3 = 0;
|
|
430
|
+
head_2 = head_7(_arg_3).fields[0];
|
|
431
|
+
}
|
|
432
|
+
else {
|
|
433
|
+
matchResult_3 = 1;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
matchResult_3 = 1;
|
|
438
|
+
}
|
|
439
|
+
switch (matchResult_3) {
|
|
440
|
+
case 0:
|
|
441
|
+
return head_2;
|
|
442
|
+
default:
|
|
443
|
+
return undefined;
|
|
444
|
+
}
|
|
445
|
+
}, rows), {
|
|
446
|
+
Compare: (x_1, y_1) => (compare(x_1, y_1) | 0),
|
|
447
|
+
});
|
|
448
|
+
const available = constructors(expandType(typeDefs, head_7(types_3)));
|
|
449
|
+
const missing = tryFind_1((tupledArg_1) => !contains(tupledArg_1[0], heads), available);
|
|
450
|
+
if (isEmpty(available)) {
|
|
451
|
+
const option_2 = uncovered(rest_1, defaultRows);
|
|
452
|
+
if (option_2 != null) {
|
|
453
|
+
return cons(CoveragePattern.Any, option_2);
|
|
454
|
+
}
|
|
455
|
+
else {
|
|
456
|
+
return undefined;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
else if (missing == null) {
|
|
460
|
+
return tryPick((tupledArg_2) => {
|
|
461
|
+
let witness, patternInput;
|
|
462
|
+
const head_5 = tupledArg_2[0];
|
|
463
|
+
const arguments$_1 = tupledArg_2[1];
|
|
464
|
+
const specialized = choose((_arg_5) => {
|
|
465
|
+
let matchResult_4, children_1, current_1, tail_9, tail_10;
|
|
466
|
+
if (!isEmpty(_arg_5)) {
|
|
467
|
+
switch (head_7(_arg_5).tag) {
|
|
468
|
+
case 1: {
|
|
469
|
+
if (equals(head_7(_arg_5).fields[0], head_5)) {
|
|
470
|
+
matchResult_4 = 0;
|
|
471
|
+
children_1 = head_7(_arg_5).fields[1];
|
|
472
|
+
current_1 = head_7(_arg_5).fields[0];
|
|
473
|
+
tail_9 = tail_13(_arg_5);
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
matchResult_4 = 2;
|
|
477
|
+
}
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
case 0: {
|
|
481
|
+
matchResult_4 = 1;
|
|
482
|
+
tail_10 = tail_13(_arg_5);
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
default:
|
|
486
|
+
matchResult_4 = 2;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
else {
|
|
490
|
+
matchResult_4 = 2;
|
|
491
|
+
}
|
|
492
|
+
switch (matchResult_4) {
|
|
493
|
+
case 0:
|
|
494
|
+
return append(children_1, tail_9);
|
|
495
|
+
case 1:
|
|
496
|
+
return append(wildcards(arguments$_1), tail_10);
|
|
497
|
+
default:
|
|
498
|
+
return undefined;
|
|
499
|
+
}
|
|
500
|
+
}, rows);
|
|
501
|
+
const option_6 = uncovered(append(arguments$_1, rest_1), specialized);
|
|
502
|
+
if (option_6 != null) {
|
|
503
|
+
return (witness = option_6, (patternInput = splitAt(length(arguments$_1), witness), cons(new CoveragePattern(/* Constructed */ 1, [head_5, patternInput[0]]), patternInput[1])));
|
|
504
|
+
}
|
|
505
|
+
else {
|
|
506
|
+
return undefined;
|
|
507
|
+
}
|
|
508
|
+
}, available);
|
|
509
|
+
}
|
|
510
|
+
else {
|
|
511
|
+
const head_4 = missing[0];
|
|
512
|
+
const arguments$ = missing[1];
|
|
513
|
+
const option_4 = uncovered(rest_1, defaultRows);
|
|
514
|
+
if (option_4 != null) {
|
|
515
|
+
return (tail_7 = option_4, cons(new CoveragePattern(/* Constructed */ 1, [head_4, wildcards(arguments$)]), tail_7));
|
|
516
|
+
}
|
|
517
|
+
else {
|
|
518
|
+
return undefined;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
else if (isEmpty(rows)) {
|
|
523
|
+
return empty();
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
return undefined;
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
const describe = (_arg_6) => {
|
|
530
|
+
let matchResult_5, value_4, item_2, head_6, tail_12, items_4, items_5, names_1, name_4, item_4, name_5;
|
|
531
|
+
if (_arg_6.tag === 1) {
|
|
532
|
+
switch (_arg_6.fields[0].tag) {
|
|
533
|
+
case 1: {
|
|
534
|
+
matchResult_5 = 1;
|
|
535
|
+
break;
|
|
536
|
+
}
|
|
537
|
+
case 2: {
|
|
538
|
+
if (!isEmpty(_arg_6.fields[1])) {
|
|
539
|
+
if (isEmpty(tail_13(_arg_6.fields[1]))) {
|
|
540
|
+
matchResult_5 = 2;
|
|
541
|
+
item_2 = head_7(_arg_6.fields[1]);
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
matchResult_5 = 11;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
else {
|
|
548
|
+
matchResult_5 = 11;
|
|
549
|
+
}
|
|
550
|
+
break;
|
|
551
|
+
}
|
|
552
|
+
case 3: {
|
|
553
|
+
matchResult_5 = 3;
|
|
554
|
+
break;
|
|
555
|
+
}
|
|
556
|
+
case 4: {
|
|
557
|
+
if (!isEmpty(_arg_6.fields[1])) {
|
|
558
|
+
if (!isEmpty(tail_13(_arg_6.fields[1]))) {
|
|
559
|
+
if (isEmpty(tail_13(tail_13(_arg_6.fields[1])))) {
|
|
560
|
+
matchResult_5 = 4;
|
|
561
|
+
head_6 = head_7(_arg_6.fields[1]);
|
|
562
|
+
tail_12 = head_7(tail_13(_arg_6.fields[1]));
|
|
563
|
+
}
|
|
564
|
+
else {
|
|
565
|
+
matchResult_5 = 11;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
else {
|
|
569
|
+
matchResult_5 = 11;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
else {
|
|
573
|
+
matchResult_5 = 11;
|
|
574
|
+
}
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
case 5: {
|
|
578
|
+
matchResult_5 = 5;
|
|
579
|
+
items_4 = _arg_6.fields[1];
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
case 6: {
|
|
583
|
+
matchResult_5 = 6;
|
|
584
|
+
items_5 = _arg_6.fields[1];
|
|
585
|
+
names_1 = _arg_6.fields[0].fields[0];
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
588
|
+
case 7: {
|
|
589
|
+
matchResult_5 = 7;
|
|
590
|
+
break;
|
|
591
|
+
}
|
|
592
|
+
case 8: {
|
|
593
|
+
matchResult_5 = 8;
|
|
594
|
+
break;
|
|
595
|
+
}
|
|
596
|
+
case 9: {
|
|
597
|
+
if (!isEmpty(_arg_6.fields[1])) {
|
|
598
|
+
if (isEmpty(tail_13(_arg_6.fields[1]))) {
|
|
599
|
+
matchResult_5 = 10;
|
|
600
|
+
item_4 = head_7(_arg_6.fields[1]);
|
|
601
|
+
name_5 = _arg_6.fields[0].fields[0];
|
|
602
|
+
}
|
|
603
|
+
else {
|
|
604
|
+
matchResult_5 = 11;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
else {
|
|
608
|
+
matchResult_5 = 9;
|
|
609
|
+
name_4 = _arg_6.fields[0].fields[0];
|
|
610
|
+
}
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
default: {
|
|
614
|
+
matchResult_5 = 0;
|
|
615
|
+
value_4 = _arg_6.fields[0].fields[0];
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
matchResult_5 = 11;
|
|
621
|
+
}
|
|
622
|
+
switch (matchResult_5) {
|
|
623
|
+
case 0:
|
|
624
|
+
if (value_4) {
|
|
625
|
+
return "true";
|
|
626
|
+
}
|
|
627
|
+
else {
|
|
628
|
+
return "false";
|
|
629
|
+
}
|
|
630
|
+
case 1:
|
|
631
|
+
return "None";
|
|
632
|
+
case 2:
|
|
633
|
+
return "Some " + describe(item_2);
|
|
634
|
+
case 3:
|
|
635
|
+
return "[]";
|
|
636
|
+
case 4:
|
|
637
|
+
return `(${describe(head_6)} :: ${describe(tail_12)})`;
|
|
638
|
+
case 5:
|
|
639
|
+
return ("(" + join(", ", map(describe, items_4))) + ")";
|
|
640
|
+
case 6:
|
|
641
|
+
return ("{ " + join("; ", map2((name_3, item_3) => (`${name_3} = ${describe(item_3)}`), names_1, items_5))) + " }";
|
|
642
|
+
case 7:
|
|
643
|
+
return "{}";
|
|
644
|
+
case 8:
|
|
645
|
+
return "{ [_] = _ }";
|
|
646
|
+
case 9:
|
|
647
|
+
return name_4;
|
|
648
|
+
case 10:
|
|
649
|
+
return (name_5 + " ") + describe(item_4);
|
|
650
|
+
default:
|
|
651
|
+
return "_";
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
if (!exists((_arg_7) => {
|
|
655
|
+
let matchResult_6;
|
|
656
|
+
switch (_arg_7[0].tag) {
|
|
657
|
+
case 0: {
|
|
658
|
+
if (_arg_7[1] == null) {
|
|
659
|
+
matchResult_6 = 0;
|
|
660
|
+
}
|
|
661
|
+
else {
|
|
662
|
+
matchResult_6 = 1;
|
|
663
|
+
}
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
case 1: {
|
|
667
|
+
if (_arg_7[1] == null) {
|
|
668
|
+
matchResult_6 = 0;
|
|
669
|
+
}
|
|
670
|
+
else {
|
|
671
|
+
matchResult_6 = 1;
|
|
672
|
+
}
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
default:
|
|
676
|
+
matchResult_6 = 1;
|
|
677
|
+
}
|
|
678
|
+
switch (matchResult_6) {
|
|
679
|
+
case 0:
|
|
680
|
+
return true;
|
|
681
|
+
default:
|
|
682
|
+
return false;
|
|
683
|
+
}
|
|
684
|
+
}, cases)) {
|
|
685
|
+
const matchValue_7 = uncovered(singleton(targetType), choose((tupledArg_3) => {
|
|
686
|
+
const pattern_2 = tupledArg_3[0];
|
|
687
|
+
if ((tupledArg_3[1] == null) && uniqueBindings(new Set([]), pattern_2)) {
|
|
688
|
+
return singleton(normalize(targetType, pattern_2));
|
|
689
|
+
}
|
|
690
|
+
else {
|
|
691
|
+
return undefined;
|
|
692
|
+
}
|
|
693
|
+
}, cases));
|
|
694
|
+
let matchResult_7, example;
|
|
695
|
+
if (matchValue_7 != null) {
|
|
696
|
+
if (!isEmpty(matchValue_7)) {
|
|
697
|
+
if (head_7(matchValue_7).tag === 0) {
|
|
698
|
+
if (isEmpty(tail_13(matchValue_7))) {
|
|
699
|
+
matchResult_7 = 0;
|
|
700
|
+
}
|
|
701
|
+
else {
|
|
702
|
+
matchResult_7 = 2;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
else if (isEmpty(tail_13(matchValue_7))) {
|
|
706
|
+
matchResult_7 = 1;
|
|
707
|
+
example = head_7(matchValue_7);
|
|
708
|
+
}
|
|
709
|
+
else {
|
|
710
|
+
matchResult_7 = 2;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
else {
|
|
714
|
+
matchResult_7 = 2;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
else {
|
|
718
|
+
matchResult_7 = 2;
|
|
719
|
+
}
|
|
720
|
+
switch (matchResult_7) {
|
|
721
|
+
case 0: {
|
|
722
|
+
throw new TypeException(new TypeError$("Non-exhaustive match. Add an unguarded catch-all case.", span));
|
|
723
|
+
break;
|
|
724
|
+
}
|
|
725
|
+
case 1: {
|
|
726
|
+
throw new TypeException(new TypeError$(concat("Non-exhaustive match. Missing case: ", describe(example), "."), span));
|
|
727
|
+
break;
|
|
728
|
+
}
|
|
729
|
+
case 2: {
|
|
730
|
+
break;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
@@ -14,6 +14,7 @@ import { array_type, class_type, tuple_type, list_type, bool_type, float64_type,
|
|
|
14
14
|
import { exists as exists_2, forAll as forAll_1, tryPick, tryFind as tryFind_2, foldBack, iterate as iterate_1, filter as filter_1, map as map_2, toList as toList_1 } from "../fable_modules/fable-library-js.5.27.0/Seq.js";
|
|
15
15
|
import { last as last_2, setItem, item as item_22 } from "../fable_modules/fable-library-js.5.27.0/Array.js";
|
|
16
16
|
import { distinct } from "../fable_modules/fable-library-js.5.27.0/Seq2.js";
|
|
17
|
+
import { check } from "./MatchCoverage.js";
|
|
17
18
|
import { builtinReservedNames, builtinSchemes } from "./BuiltinSignatures.js";
|
|
18
19
|
import { ofExterns, typeDefinitions } from "./HostInterop.js";
|
|
19
20
|
import { typeDefs as typeDefs_2 } from "./BuiltinTypes.js";
|
|
@@ -2863,10 +2864,12 @@ function inferExprRaw(telemetry, typeDefs, constructors, env, expr) {
|
|
|
2863
2864
|
return [compose(patternInput_19[0], sRec), tBody_4, asTyped(telemetry, expr, tBody_4)];
|
|
2864
2865
|
}
|
|
2865
2866
|
case 9: {
|
|
2867
|
+
const cases = expr.fields[1];
|
|
2866
2868
|
const patternInput_20 = inferExpr(telemetry, typeDefs, constructors, env, expr.fields[0]);
|
|
2869
|
+
const tScrut = patternInput_20[1];
|
|
2867
2870
|
let sAcc_1 = patternInput_20[0];
|
|
2868
2871
|
let resultTypeOpt = undefined;
|
|
2869
|
-
const enumerator_3 = getEnumerator(
|
|
2872
|
+
const enumerator_3 = getEnumerator(cases);
|
|
2870
2873
|
try {
|
|
2871
2874
|
while (enumerator_3["System.Collections.IEnumerator.MoveNext"]()) {
|
|
2872
2875
|
let tPrev, sEq;
|
|
@@ -2875,7 +2878,7 @@ function inferExprRaw(telemetry, typeDefs, constructors, env, expr) {
|
|
|
2875
2878
|
const caseSpan = forLoopVar_2[3];
|
|
2876
2879
|
const patternInput_21 = inferPattern(telemetry, typeDefs, constructors, forLoopVar_2[0]);
|
|
2877
2880
|
const envPat_1 = patternInput_21[0];
|
|
2878
|
-
const sPat = unify(typeDefs, applyType(sAcc_1,
|
|
2881
|
+
const sPat = unify(typeDefs, applyType(sAcc_1, tScrut), patternInput_21[1], caseSpan);
|
|
2879
2882
|
const envCase$0027 = fold_1((acc_3, k, v) => add(k, new Scheme(empty_2(), applyType(sPat, v)), acc_3), applyEnv(compose(sPat, sAcc_1), env), envPat_1);
|
|
2880
2883
|
const patternInput_23 = withLocalBindings(telemetry, map_1((tuple_2) => tuple_2[0], toList(envPat_1)), () => {
|
|
2881
2884
|
let envBodyCase = envCase$0027;
|
|
@@ -2900,6 +2903,7 @@ function inferExprRaw(telemetry, typeDefs, constructors, env, expr) {
|
|
|
2900
2903
|
finally {
|
|
2901
2904
|
disposeSafe(enumerator_3);
|
|
2902
2905
|
}
|
|
2906
|
+
check(typeDefs, applyType(sAcc_1, tScrut), cases, expr.fields[2]);
|
|
2903
2907
|
const tRes_3 = defaultArg(resultTypeOpt, Types_freshVar());
|
|
2904
2908
|
return [sAcc_1, tRes_3, asTyped(telemetry, expr, tRes_3)];
|
|
2905
2909
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"Version":"5.27.0","FableOptions":{"TypedArrays":true,"ClampByteArrays":false,"Language":["JavaScript"],"Define":["FABLE_COMPILER","FABLE_COMPILER_5","FABLE_COMPILER_JAVASCRIPT"],"DebugMode":false,"OptimizeFSharpAst":false,"Verbosity":["Normal"],"FileExtension":".js","TriggeredByDependency":false,"NoReflection":false,"JsTemporal":false},"ProjectPath":"/home/runner/work/FScript/FScript/src/FScript.JavaScript/FScript.JavaScript.fsproj","SourcePaths":["/home/runner/work/FScript/FScript/src/FScript.Language/Span.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Error.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Token.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Ast.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Types.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Value.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Lexer.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Parser.fs","/home/runner/work/FScript/FScript/src/FScript.Language/IncludeResolver.fs","/home/runner/work/FScript/FScript/src/FScript.Language/BuiltinTypes.fs","/home/runner/work/FScript/FScript/src/FScript.Language/HostInterop.fs","/home/runner/work/FScript/FScript/src/FScript.Language/SupportLibrary.fs","/home/runner/work/FScript/FScript/src/FScript.Language/BuiltinSignatures.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Execution.fs","/home/runner/work/FScript/FScript/src/FScript.Language/SupportCollections.fs","/home/runner/work/FScript/FScript/src/FScript.Language/BuiltinFunctions.fs","/home/runner/work/FScript/FScript/src/FScript.Language/TaskFunctions.fs","/home/runner/work/FScript/FScript/src/FScript.Language/TypeInfer.fs","/home/runner/work/FScript/FScript/src/FScript.Language/TaskSharingAnalysis.fs","/home/runner/work/FScript/FScript/src/FScript.Language/ExportSignatures.fs","/home/runner/work/FScript/FScript/src/FScript.Language/DebugHooks.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Eval.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Interactive.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Pretty.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Library.fs","/home/runner/work/FScript/FScript/src/FScript.JavaScript/Library.fs"],"FSharpOptions":["--define:FABLE_COMPILER","--define:FABLE_COMPILER_5","--define:FABLE_COMPILER_JAVASCRIPT","--define:TRACE","--define:RELEASE","--define:NETSTANDARD","--define:NETSTANDARD2_1","--define:NETSTANDARD1_0_OR_GREATER","--define:NETSTANDARD1_1_OR_GREATER","--define:NETSTANDARD1_2_OR_GREATER","--define:NETSTANDARD1_3_OR_GREATER","--define:NETSTANDARD1_4_OR_GREATER","--define:NETSTANDARD1_5_OR_GREATER","--define:NETSTANDARD1_6_OR_GREATER","--define:NETSTANDARD2_0_OR_GREATER","--define:NETSTANDARD2_1_OR_GREATER","--define:NULLABLE","--langversion:preview","--nowarn:FS0988","--targetprofile:netstandard","--noframework","--nologo","--simpleresolution","--nocopyfsharpcore","--nowin32manifest","--warn:3","--fullpaths","--flaterrors","--optimize-","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ValueTuple.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Threading.Thread.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Threading.Tasks.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Threading.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.RegularExpressions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.Encoding.Extensions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.Encoding.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.Numerics.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.InteropServices.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.Extensions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Reflection.Primitives.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Reflection.Extensions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Reflection.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Numerics.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Net.Requests.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.IO.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Globalization.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Diagnostics.Tracing.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Diagnostics.Tools.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Diagnostics.Debug.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Core.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Console.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ComponentModel.TypeConverter.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ComponentModel.Primitives.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ComponentModel.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Collections.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Collections.Concurrent.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/netstandard.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/mscorlib.dll","-r:/home/runner/.nuget/packages/fsharp.core/10.1.404/lib/netstandard2.1/FSharp.Core.dll","-r:/home/runner/.nuget/packages/fable.core/5.6.1/lib/netstandard2.0/Fable.Core.dll"],"References":["/home/runner/work/FScript/FScript/src/FScript.Language/FScript.Language.fsproj"],"OutDir":["Some","/home/runner/work/FScript/FScript/src/FScript.JavaScript/dist"],"FableLib":null,"FableLibDir":"/home/runner/work/FScript/FScript/src/FScript.JavaScript/dist/fable_modules/fable-library-js.5.27.0","FableModulesDir":"/home/runner/work/FScript/FScript/src/FScript.JavaScript/dist/fable_modules","OutputType":["Library"],"TargetFramework":["Some","netstandard2.1"],"Configuration":"Release","Exclude":[],"Replace":{},"SourceMaps":false,"SourceMapsRoot":null,"TreatWarningsAsErrors":true}
|
|
1
|
+
{"Version":"5.27.0","FableOptions":{"TypedArrays":true,"ClampByteArrays":false,"Language":["JavaScript"],"Define":["FABLE_COMPILER","FABLE_COMPILER_5","FABLE_COMPILER_JAVASCRIPT"],"DebugMode":false,"OptimizeFSharpAst":false,"Verbosity":["Normal"],"FileExtension":".js","TriggeredByDependency":false,"NoReflection":false,"JsTemporal":false},"ProjectPath":"/home/runner/work/FScript/FScript/src/FScript.JavaScript/FScript.JavaScript.fsproj","SourcePaths":["/home/runner/work/FScript/FScript/src/FScript.Language/Span.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Error.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Token.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Ast.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Types.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Value.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Lexer.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Parser.fs","/home/runner/work/FScript/FScript/src/FScript.Language/IncludeResolver.fs","/home/runner/work/FScript/FScript/src/FScript.Language/BuiltinTypes.fs","/home/runner/work/FScript/FScript/src/FScript.Language/HostInterop.fs","/home/runner/work/FScript/FScript/src/FScript.Language/SupportLibrary.fs","/home/runner/work/FScript/FScript/src/FScript.Language/BuiltinSignatures.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Execution.fs","/home/runner/work/FScript/FScript/src/FScript.Language/SupportCollections.fs","/home/runner/work/FScript/FScript/src/FScript.Language/BuiltinFunctions.fs","/home/runner/work/FScript/FScript/src/FScript.Language/TaskFunctions.fs","/home/runner/work/FScript/FScript/src/FScript.Language/MatchCoverage.fs","/home/runner/work/FScript/FScript/src/FScript.Language/TypeInfer.fs","/home/runner/work/FScript/FScript/src/FScript.Language/TaskSharingAnalysis.fs","/home/runner/work/FScript/FScript/src/FScript.Language/ExportSignatures.fs","/home/runner/work/FScript/FScript/src/FScript.Language/DebugHooks.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Eval.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Interactive.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Pretty.fs","/home/runner/work/FScript/FScript/src/FScript.Language/Library.fs","/home/runner/work/FScript/FScript/src/FScript.JavaScript/Library.fs"],"FSharpOptions":["--define:FABLE_COMPILER","--define:FABLE_COMPILER_5","--define:FABLE_COMPILER_JAVASCRIPT","--define:TRACE","--define:RELEASE","--define:NETSTANDARD","--define:NETSTANDARD2_1","--define:NETSTANDARD1_0_OR_GREATER","--define:NETSTANDARD1_1_OR_GREATER","--define:NETSTANDARD1_2_OR_GREATER","--define:NETSTANDARD1_3_OR_GREATER","--define:NETSTANDARD1_4_OR_GREATER","--define:NETSTANDARD1_5_OR_GREATER","--define:NETSTANDARD1_6_OR_GREATER","--define:NETSTANDARD2_0_OR_GREATER","--define:NETSTANDARD2_1_OR_GREATER","--define:NULLABLE","--langversion:preview","--nowarn:FS0988","--targetprofile:netstandard","--noframework","--nologo","--simpleresolution","--nocopyfsharpcore","--nowin32manifest","--warn:3","--fullpaths","--flaterrors","--optimize-","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ValueTuple.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Threading.Thread.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Threading.Tasks.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Threading.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.RegularExpressions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.Encoding.Extensions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.Encoding.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.Numerics.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.InteropServices.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.Extensions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Runtime.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Reflection.Primitives.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Reflection.Extensions.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Reflection.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Numerics.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Net.Requests.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.IO.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Globalization.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Diagnostics.Tracing.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Diagnostics.Tools.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Diagnostics.Debug.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Core.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Console.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ComponentModel.TypeConverter.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ComponentModel.Primitives.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.ComponentModel.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Collections.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Collections.Concurrent.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/netstandard.dll","-r:/usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/mscorlib.dll","-r:/home/runner/.nuget/packages/fsharp.core/10.1.404/lib/netstandard2.1/FSharp.Core.dll","-r:/home/runner/.nuget/packages/fable.core/5.6.1/lib/netstandard2.0/Fable.Core.dll"],"References":["/home/runner/work/FScript/FScript/src/FScript.Language/FScript.Language.fsproj"],"OutDir":["Some","/home/runner/work/FScript/FScript/src/FScript.JavaScript/dist"],"FableLib":null,"FableLibDir":"/home/runner/work/FScript/FScript/src/FScript.JavaScript/dist/fable_modules/fable-library-js.5.27.0","FableModulesDir":"/home/runner/work/FScript/FScript/src/FScript.JavaScript/dist/fable_modules","OutputType":["Library"],"TargetFramework":["Some","netstandard2.1"],"Configuration":"Release","Exclude":[],"Replace":{},"SourceMaps":false,"SourceMapsRoot":null,"TreatWarningsAsErrors":true}
|