compostjs 0.0.11 → 0.0.12
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/dist/fable_modules/fable-library-js.4.28.0/Array.d.ts +123 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Array.js +1242 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Async.d.ts +26 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Async.js +145 -0
- package/dist/fable_modules/fable-library-js.4.28.0/AsyncBuilder.d.ts +59 -0
- package/dist/fable_modules/fable-library-js.4.28.0/AsyncBuilder.js +183 -0
- package/dist/fable_modules/fable-library-js.4.28.0/BigInt.d.ts +115 -0
- package/dist/fable_modules/fable-library-js.4.28.0/BigInt.js +283 -0
- package/dist/fable_modules/fable-library-js.4.28.0/BitConverter.d.ts +27 -0
- package/dist/fable_modules/fable-library-js.4.28.0/BitConverter.js +138 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Boolean.d.ts +3 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Boolean.js +21 -0
- package/dist/fable_modules/fable-library-js.4.28.0/CHANGELOG.md +100 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Char.d.ts +65 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Char.js +169 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Choice.d.ts +121 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Choice.js +184 -0
- package/dist/fable_modules/fable-library-js.4.28.0/CollectionUtil.d.ts +7 -0
- package/dist/fable_modules/fable-library-js.4.28.0/CollectionUtil.js +182 -0
- package/dist/fable_modules/fable-library-js.4.28.0/ConditionalWeakTable.d.ts +9 -0
- package/dist/fable_modules/fable-library-js.4.28.0/ConditionalWeakTable.js +21 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Date.d.ts +70 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Date.js +748 -0
- package/dist/fable_modules/fable-library-js.4.28.0/DateOffset.d.ts +63 -0
- package/dist/fable_modules/fable-library-js.4.28.0/DateOffset.js +268 -0
- package/dist/fable_modules/fable-library-js.4.28.0/DateOnly.d.ts +18 -0
- package/dist/fable_modules/fable-library-js.4.28.0/DateOnly.js +124 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Decimal.d.ts +45 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Decimal.js +212 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Double.d.ts +11 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Double.js +46 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Encoding.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Encoding.js +173 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Event.d.ts +31 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Event.js +93 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Collections.d.ts +7 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Collections.js +27 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.CompilerServices.js +27 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.d.ts +17 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.js +69 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Global.d.ts +24 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Global.js +8 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Guid.d.ts +10 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Guid.js +142 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Int32.d.ts +28 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Int32.js +135 -0
- package/dist/fable_modules/fable-library-js.4.28.0/List.d.ts +143 -0
- package/dist/fable_modules/fable-library-js.4.28.0/List.js +1273 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Long.d.ts +3 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Long.js +46 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MailboxProcessor.d.ts +25 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MailboxProcessor.js +93 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Map.d.ts +178 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Map.js +1396 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MapUtil.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MapUtil.js +127 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MutableMap.d.ts +52 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MutableMap.js +327 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MutableSet.d.ts +39 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MutableSet.js +233 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Native.d.ts +2 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Native.js +8 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Numeric.d.ts +19 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Numeric.js +71 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Observable.d.ts +32 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Observable.js +113 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Option.d.ts +28 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Option.js +96 -0
- package/dist/fable_modules/fable-library-js.4.28.0/README.md +3 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Random.d.ts +37 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Random.js +170 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Range.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Range.js +45 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Reflection.d.ts +119 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Reflection.js +461 -0
- package/dist/fable_modules/fable-library-js.4.28.0/RegExp.d.ts +10 -0
- package/dist/fable_modules/fable-library-js.4.28.0/RegExp.js +131 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Result.d.ts +37 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Result.js +165 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Seq.d.ts +165 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Seq.js +1378 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Seq2.d.ts +18 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Seq2.js +111 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Set.d.ts +190 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Set.js +1789 -0
- package/dist/fable_modules/fable-library-js.4.28.0/String.d.ts +58 -0
- package/dist/fable_modules/fable-library-js.4.28.0/String.js +554 -0
- package/dist/fable_modules/fable-library-js.4.28.0/System.Collections.Generic.d.ts +79 -0
- package/dist/fable_modules/fable-library-js.4.28.0/System.Collections.Generic.js +317 -0
- package/dist/fable_modules/fable-library-js.4.28.0/System.Text.d.ts +38 -0
- package/dist/fable_modules/fable-library-js.4.28.0/System.Text.js +162 -0
- package/dist/fable_modules/fable-library-js.4.28.0/SystemException.d.ts +5 -0
- package/dist/fable_modules/fable-library-js.4.28.0/SystemException.js +5 -0
- package/dist/fable_modules/fable-library-js.4.28.0/TimeOnly.d.ts +15 -0
- package/dist/fable_modules/fable-library-js.4.28.0/TimeOnly.js +122 -0
- package/dist/fable_modules/fable-library-js.4.28.0/TimeSpan.d.ts +34 -0
- package/dist/fable_modules/fable-library-js.4.28.0/TimeSpan.js +177 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Timer.d.ts +19 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Timer.js +67 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Types.d.ts +58 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Types.js +208 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Unicode.13.0.0.d.ts +2 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Unicode.13.0.0.js +4 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Uri.d.ts +31 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Uri.js +159 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Util.d.ts +210 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Util.js +769 -0
- package/dist/fable_modules/fable-library-js.4.28.0/big.d.ts +338 -0
- package/dist/fable_modules/fable-library-js.4.28.0/lib/big.d.ts +5 -0
- package/dist/fable_modules/fable-library-js.4.28.0/lib/big.js +825 -0
- package/dist/fable_modules/fable-library-js.4.28.0/package.json +24 -0
- package/dist/fable_modules/project_cracked.json +1 -0
- package/package.json +4 -3
- package/.claude/settings.local.json +0 -11
- package/copy-latest.sh +0 -1
- package/dist/fable-library.2.10.1/Array.js +0 -1336
- package/dist/fable-library.2.10.1/Async.js +0 -121
- package/dist/fable-library.2.10.1/AsyncBuilder.js +0 -200
- package/dist/fable-library.2.10.1/Date.js +0 -501
- package/dist/fable-library.2.10.1/Decimal.js +0 -208
- package/dist/fable-library.2.10.1/Event.js +0 -193
- package/dist/fable-library.2.10.1/Int32.js +0 -157
- package/dist/fable-library.2.10.1/List.js +0 -1234
- package/dist/fable-library.2.10.1/Long.js +0 -155
- package/dist/fable-library.2.10.1/Map.js +0 -1292
- package/dist/fable-library.2.10.1/MutableMap.js +0 -360
- package/dist/fable-library.2.10.1/MutableSet.js +0 -279
- package/dist/fable-library.2.10.1/Observable.js +0 -131
- package/dist/fable-library.2.10.1/Option.js +0 -118
- package/dist/fable-library.2.10.1/Reflection.js +0 -345
- package/dist/fable-library.2.10.1/RegExp.js +0 -118
- package/dist/fable-library.2.10.1/Seq.js +0 -917
- package/dist/fable-library.2.10.1/Set.js +0 -1692
- package/dist/fable-library.2.10.1/String.js +0 -679
- package/dist/fable-library.2.10.1/Types.js +0 -308
- package/dist/fable-library.2.10.1/Util.js +0 -761
- package/dist/helpers.js +0 -31
- package/dist/lib/big.js +0 -905
- package/dist/lib/long.js +0 -1375
- package/index.html +0 -49
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
// tslint:disable: space-before-function-paren
|
|
2
|
-
import { combineHashCodes, compare, compareArrays, equalArrays, equals, identityHash, numberHash, structuralHash } from "./Util";
|
|
3
|
-
|
|
4
|
-
function sameType(x, y) {
|
|
5
|
-
return y != null && Object.getPrototypeOf(x).constructor === Object.getPrototypeOf(y).constructor;
|
|
6
|
-
} // Taken from Babel helpers
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function inherits(subClass, superClass) {
|
|
10
|
-
// if (typeof superClass !== "function" && superClass !== null) {
|
|
11
|
-
// throw new TypeError(
|
|
12
|
-
// "Super expression must either be null or a function, not " +
|
|
13
|
-
// typeof superClass
|
|
14
|
-
// );
|
|
15
|
-
// }
|
|
16
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
17
|
-
constructor: {
|
|
18
|
-
value: subClass,
|
|
19
|
-
enumerable: false,
|
|
20
|
-
writable: true,
|
|
21
|
-
configurable: true
|
|
22
|
-
}
|
|
23
|
-
}); // if (superClass)
|
|
24
|
-
// Object.setPrototypeOf
|
|
25
|
-
// ? Object.setPrototypeOf(subClass, superClass)
|
|
26
|
-
// : (subClass.__proto__ = superClass);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function declare(cons, superClass) {
|
|
30
|
-
inherits(cons, superClass || SystemObject);
|
|
31
|
-
return cons;
|
|
32
|
-
}
|
|
33
|
-
export class SystemObject {
|
|
34
|
-
toString() {
|
|
35
|
-
return "{" + Object.entries(this).map(([k, v]) => k + " = " + String(v)).join(";\n ") + "}";
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
GetHashCode() {
|
|
39
|
-
return identityHash(this);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
Equals(other) {
|
|
43
|
-
return this === other;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function compareList(self, other) {
|
|
49
|
-
if (self === other) {
|
|
50
|
-
return 0;
|
|
51
|
-
} else {
|
|
52
|
-
if (other == null) {
|
|
53
|
-
return -1;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
while (self.tail != null) {
|
|
57
|
-
if (other.tail == null) {
|
|
58
|
-
return 1;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const res = compare(self.head, other.head);
|
|
62
|
-
|
|
63
|
-
if (res !== 0) {
|
|
64
|
-
return res;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
self = self.tail;
|
|
68
|
-
other = other.tail;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return other.tail == null ? 0 : -1;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export class List {
|
|
76
|
-
constructor(head, tail) {
|
|
77
|
-
this.head = head;
|
|
78
|
-
this.tail = tail;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
toString() {
|
|
82
|
-
return "[" + Array.from(this).join("; ") + "]";
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
toJSON() {
|
|
86
|
-
return Array.from(this);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
[Symbol.iterator]() {
|
|
90
|
-
let cur = this;
|
|
91
|
-
return {
|
|
92
|
-
next: () => {
|
|
93
|
-
const value = cur === null || cur === void 0 ? void 0 : cur.head;
|
|
94
|
-
const done = (cur === null || cur === void 0 ? void 0 : cur.tail) == null;
|
|
95
|
-
cur = cur === null || cur === void 0 ? void 0 : cur.tail;
|
|
96
|
-
return {
|
|
97
|
-
done,
|
|
98
|
-
value
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
GetHashCode() {
|
|
105
|
-
const hashes = Array.from(this).map(structuralHash);
|
|
106
|
-
return combineHashCodes(hashes);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
Equals(other) {
|
|
110
|
-
return compareList(this, other) === 0;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
CompareTo(other) {
|
|
114
|
-
return compareList(this, other);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
export class Union extends SystemObject {
|
|
119
|
-
constructor(tag, name, ...fields) {
|
|
120
|
-
super();
|
|
121
|
-
this.tag = tag | 0;
|
|
122
|
-
this.name = name;
|
|
123
|
-
this.fields = fields;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
toString() {
|
|
127
|
-
const len = this.fields.length;
|
|
128
|
-
|
|
129
|
-
if (len === 0) {
|
|
130
|
-
return this.name;
|
|
131
|
-
} else if (len === 1) {
|
|
132
|
-
return this.name + " " + String(this.fields[0]);
|
|
133
|
-
} else {
|
|
134
|
-
return this.name + " (" + this.fields.map(x => String(x)).join(",") + ")";
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
toJSON() {
|
|
139
|
-
return this.fields.length === 0 ? this.name : [this.name].concat(this.fields);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
GetHashCode() {
|
|
143
|
-
const hashes = this.fields.map(x => structuralHash(x));
|
|
144
|
-
hashes.splice(0, 0, numberHash(this.tag));
|
|
145
|
-
return combineHashCodes(hashes);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
Equals(other) {
|
|
149
|
-
return this === other || sameType(this, other) && this.tag === other.tag && equalArrays(this.fields, other.fields);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
CompareTo(other) {
|
|
153
|
-
if (this === other) {
|
|
154
|
-
return 0;
|
|
155
|
-
} else if (!sameType(this, other)) {
|
|
156
|
-
return -1;
|
|
157
|
-
} else if (this.tag === other.tag) {
|
|
158
|
-
return compareArrays(this.fields, other.fields);
|
|
159
|
-
} else {
|
|
160
|
-
return this.tag < other.tag ? -1 : 1;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
function recordToJson(record, getFieldNames) {
|
|
167
|
-
const o = {};
|
|
168
|
-
const keys = getFieldNames == null ? Object.keys(record) : getFieldNames(record);
|
|
169
|
-
|
|
170
|
-
for (let i = 0; i < keys.length; i++) {
|
|
171
|
-
o[keys[i]] = record[keys[i]];
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
return o;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
function recordEquals(self, other, getFieldNames) {
|
|
178
|
-
if (self === other) {
|
|
179
|
-
return true;
|
|
180
|
-
} else if (!sameType(self, other)) {
|
|
181
|
-
return false;
|
|
182
|
-
} else {
|
|
183
|
-
const thisNames = getFieldNames == null ? Object.keys(self) : getFieldNames(self);
|
|
184
|
-
|
|
185
|
-
for (let i = 0; i < thisNames.length; i++) {
|
|
186
|
-
if (!equals(self[thisNames[i]], other[thisNames[i]])) {
|
|
187
|
-
return false;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
return true;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
function recordCompare(self, other, getFieldNames) {
|
|
196
|
-
if (self === other) {
|
|
197
|
-
return 0;
|
|
198
|
-
} else if (!sameType(self, other)) {
|
|
199
|
-
return -1;
|
|
200
|
-
} else {
|
|
201
|
-
const thisNames = getFieldNames == null ? Object.keys(self) : getFieldNames(self);
|
|
202
|
-
|
|
203
|
-
for (let i = 0; i < thisNames.length; i++) {
|
|
204
|
-
const result = compare(self[thisNames[i]], other[thisNames[i]]);
|
|
205
|
-
|
|
206
|
-
if (result !== 0) {
|
|
207
|
-
return result;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
return 0;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export class Record extends SystemObject {
|
|
216
|
-
toString() {
|
|
217
|
-
return "{" + Object.entries(this).map(([k, v]) => k + " = " + String(v)).join(";\n ") + "}";
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
toJSON() {
|
|
221
|
-
return recordToJson(this);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
GetHashCode() {
|
|
225
|
-
const hashes = Object.values(this).map(v => structuralHash(v));
|
|
226
|
-
return combineHashCodes(hashes);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
Equals(other) {
|
|
230
|
-
return recordEquals(this, other);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
CompareTo(other) {
|
|
234
|
-
return recordCompare(this, other);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
export function anonRecord(o) {
|
|
239
|
-
return Object.assign(Object.create(Record.prototype), o);
|
|
240
|
-
}
|
|
241
|
-
export class FSharpRef extends Record {
|
|
242
|
-
constructor(contents) {
|
|
243
|
-
super();
|
|
244
|
-
this.contents = contents;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
export const Exception = declare(function Exception(message) {
|
|
249
|
-
this.stack = Error().stack;
|
|
250
|
-
this.message = message;
|
|
251
|
-
}, SystemObject);
|
|
252
|
-
export function isException(x) {
|
|
253
|
-
return x instanceof Error || x instanceof Exception;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
function getFSharpExceptionFieldNames(self) {
|
|
257
|
-
return Object.keys(self).filter(k => k !== "message" && k !== "stack");
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export class FSharpException extends Exception {
|
|
261
|
-
toString() {
|
|
262
|
-
var _a; // const fieldNames = getFSharpExceptionFieldNames(this);
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
const fields = Object.entries(this).filter(([k, _]) => k !== "message" && k !== "stack");
|
|
266
|
-
const len = fields.length;
|
|
267
|
-
|
|
268
|
-
if (len === 0) {
|
|
269
|
-
return (_a = this.message) !== null && _a !== void 0 ? _a : "";
|
|
270
|
-
} else if (len === 1) {
|
|
271
|
-
return this.message + " " + String(fields[1]);
|
|
272
|
-
} else {
|
|
273
|
-
return this.message + " (" + fields.map(([_, v]) => String(v)).join(",") + ")";
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
toJSON() {
|
|
278
|
-
return recordToJson(this, getFSharpExceptionFieldNames);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
GetHashCode() {
|
|
282
|
-
const fields = Object.entries(this).filter(([k, _]) => k !== "message" && k !== "stack");
|
|
283
|
-
const hashes = fields.map(([_, v]) => structuralHash(v));
|
|
284
|
-
return combineHashCodes(hashes);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
Equals(other) {
|
|
288
|
-
return recordEquals(this, other, getFSharpExceptionFieldNames);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
CompareTo(other) {
|
|
292
|
-
return recordCompare(this, other, getFSharpExceptionFieldNames);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
export class MatchFailureException extends FSharpException {
|
|
297
|
-
constructor(arg1, arg2, arg3) {
|
|
298
|
-
super();
|
|
299
|
-
this.arg1 = arg1;
|
|
300
|
-
this.arg2 = arg2 | 0;
|
|
301
|
-
this.arg3 = arg3 | 0;
|
|
302
|
-
this.message = "The match cases were incomplete";
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
}
|
|
306
|
-
export const Attribute = declare(function Attribute() {
|
|
307
|
-
return;
|
|
308
|
-
}, SystemObject);
|