firefly-compiler 0.5.75 → 0.5.76
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/bin/firefly.mjs +1 -1
- package/compiler/Deriver.ff +3 -0
- package/core/Core.ff +5 -5
- package/core/Error.ff +1 -1
- package/core/Log.ff +1 -1
- package/core/Path.ff +1 -1
- package/experimental/foldertest/Root.ff +6 -1
- package/output/js/ff/compiler/Compiler.mjs +8 -8
- package/output/js/ff/compiler/Dependencies.mjs +10 -10
- package/output/js/ff/compiler/Deriver.mjs +4 -4
- package/output/js/ff/compiler/Dictionaries.mjs +4 -4
- package/output/js/ff/compiler/Environment.mjs +6 -6
- package/output/js/ff/compiler/Inference.mjs +86 -80
- package/output/js/ff/compiler/JsEmitter.mjs +8 -8
- package/output/js/ff/compiler/JsImporter.mjs +8 -8
- package/output/js/ff/compiler/LspHook.mjs +4 -4
- package/output/js/ff/compiler/Main.mjs +30 -30
- package/output/js/ff/compiler/Parser.mjs +54 -50
- package/output/js/ff/compiler/Patterns.mjs +6 -6
- package/output/js/ff/compiler/Resolver.mjs +32 -32
- package/output/js/ff/compiler/Syntax.mjs +74 -74
- package/output/js/ff/compiler/Token.mjs +4 -4
- package/output/js/ff/compiler/Tokenizer.mjs +4 -4
- package/output/js/ff/compiler/Unification.mjs +14 -14
- package/output/js/ff/compiler/Workspace.mjs +4 -4
- package/output/js/ff/core/Array.mjs +10 -10
- package/output/js/ff/core/Buffer.mjs +4 -4
- package/output/js/ff/core/Core.mjs +27 -10
- package/output/js/ff/core/IntMap.mjs +2 -2
- package/output/js/ff/core/JsValue.mjs +20 -20
- package/output/js/ff/core/Json.mjs +10 -10
- package/output/js/ff/core/List.mjs +4 -4
- package/output/js/ff/core/Lock.mjs +4 -4
- package/output/js/ff/core/NodeSystem.mjs +19 -2
- package/output/js/ff/core/Option.mjs +2 -2
- package/output/js/ff/core/Pair.mjs +2 -2
- package/output/js/ff/core/Path.mjs +2 -2
- package/output/js/ff/core/Serializable.mjs +19 -2
- package/output/js/ff/core/String.mjs +10 -10
- package/output/js/ff/core/StringMap.mjs +2 -2
- package/output/js/ff/core/Try.mjs +2 -2
- package/package.json +1 -1
- package/vscode/client/src/extension.ts +2 -2
- package/vscode/package.json +1 -1
|
@@ -1517,7 +1517,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
1517
1517
|
return ff_compiler_Token.Token(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_compiler_Token.ff_core_Serializable_Serializable$ff_compiler_Token_TokenKind.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Int_Int.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Int_Int.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Int_Int.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Int_Int.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Int_Int.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Int_Int.deserializeUsing_(serialization_))
|
|
1518
1518
|
}
|
|
1519
1519
|
{
|
|
1520
|
-
|
|
1520
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
},
|
|
@@ -1552,7 +1552,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
1552
1552
|
return ff_compiler_Token.Token(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_compiler_Token.ff_core_Serializable_Serializable$ff_compiler_Token_TokenKind.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Int_Int.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Int_Int.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Int_Int.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Int_Int.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Int_Int.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Int_Int.deserializeUsing_(serialization_))
|
|
1553
1553
|
}
|
|
1554
1554
|
{
|
|
1555
|
-
|
|
1555
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
1556
1556
|
}
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
@@ -1905,7 +1905,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
1905
1905
|
return ff_compiler_Token.LAssignDivision()
|
|
1906
1906
|
}
|
|
1907
1907
|
{
|
|
1908
|
-
|
|
1908
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
1911
|
},
|
|
@@ -2255,7 +2255,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
2255
2255
|
return ff_compiler_Token.LAssignDivision()
|
|
2256
2256
|
}
|
|
2257
2257
|
{
|
|
2258
|
-
|
|
2258
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
2259
2259
|
}
|
|
2260
2260
|
}
|
|
2261
2261
|
}
|
|
@@ -158,7 +158,7 @@ tokens_.array.push(ff_compiler_Token.Token(file_, code_, kind_, startLine_, star
|
|
|
158
158
|
let i_ = 0;
|
|
159
159
|
function throwError_(message_) {
|
|
160
160
|
const column_ = ((i_ - startLineOffset_) + 1);
|
|
161
|
-
|
|
161
|
+
ff_core_Core.throw_(ff_compiler_Syntax.CompileError(ff_compiler_Syntax.Location(file_, line_, column_), message_), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError, ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_CompileError)
|
|
162
162
|
}
|
|
163
163
|
try {
|
|
164
164
|
while((i_ < code_.length)) {
|
|
@@ -359,7 +359,7 @@ if(!_exception.Some) throw _error
|
|
|
359
359
|
{
|
|
360
360
|
const e_ = _exception.value_;
|
|
361
361
|
const error_ = _error;
|
|
362
|
-
|
|
362
|
+
ff_core_Core.throw_(ff_compiler_Syntax.CompileError(ff_compiler_Syntax.Location(file_, line_, (i_ - lineOffset_)), "Unexpected end of file"), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError, ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_CompileError)
|
|
363
363
|
}
|
|
364
364
|
};
|
|
365
365
|
for(let for_a = ff_core_List.range_(5), for_i = 0, for_l = for_a.length; for_i < for_l; for_i++) {
|
|
@@ -420,7 +420,7 @@ tokens_.array.push(ff_compiler_Token.Token(file_, code_, kind_, startLine_, star
|
|
|
420
420
|
let i_ = 0;
|
|
421
421
|
function throwError_(message_) {
|
|
422
422
|
const column_ = ((i_ - startLineOffset_) + 1);
|
|
423
|
-
|
|
423
|
+
ff_core_Core.throw_(ff_compiler_Syntax.CompileError(ff_compiler_Syntax.Location(file_, line_, column_), message_), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError, ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_CompileError)
|
|
424
424
|
}
|
|
425
425
|
try {
|
|
426
426
|
while((i_ < code_.length)) {
|
|
@@ -621,7 +621,7 @@ if(!_exception.Some) throw _error
|
|
|
621
621
|
{
|
|
622
622
|
const e_ = _exception.value_;
|
|
623
623
|
const error_ = _error;
|
|
624
|
-
|
|
624
|
+
ff_core_Core.throw_(ff_compiler_Syntax.CompileError(ff_compiler_Syntax.Location(file_, line_, (i_ - lineOffset_)), "Unexpected end of file"), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError, ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_CompileError)
|
|
625
625
|
}
|
|
626
626
|
};
|
|
627
627
|
for(let for_a = ff_core_List.range_(5), for_i = 0, for_l = for_a.length; for_i < for_l; for_i++) {
|
|
@@ -123,7 +123,7 @@ return {generics_, constraints_, moduleKey_, traitName_, typeArguments_};
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
export function fail_(at_, message_) {
|
|
126
|
-
|
|
126
|
+
return ff_core_Core.throw_(ff_compiler_Syntax.CompileError(at_, message_), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError, ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_CompileError)
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
export function new_(modules_, attemptFixes_) {
|
|
@@ -145,7 +145,7 @@ return ff_core_Pair.Pair(ff_compiler_Unification.InstanceKey(definition_.traitNa
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
export async function fail_$(at_, message_, $task) {
|
|
148
|
-
|
|
148
|
+
return ff_core_Core.throw_(ff_compiler_Syntax.CompileError(at_, message_), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError, ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_CompileError)
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
export async function new_$(modules_, attemptFixes_, $task) {
|
|
@@ -296,7 +296,7 @@ const g2_ = (ff_core_List.List_isEmpty(generics2_)
|
|
|
296
296
|
? ""
|
|
297
297
|
: "[...]");
|
|
298
298
|
if((!self_.attemptFixes_)) {
|
|
299
|
-
|
|
299
|
+
ff_core_Core.throw_(ff_compiler_Syntax.CompileError(at_, ((((("No such instance: " + name_) + g2_) + ": ") + constraintName_) + g1_)), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError, ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_CompileError)
|
|
300
300
|
}
|
|
301
301
|
return
|
|
302
302
|
}
|
|
@@ -426,7 +426,7 @@ if(((name1_ !== name2_) || (generics1_.length !== generics2_.length))) {
|
|
|
426
426
|
if((!self_.attemptFixes_)) {
|
|
427
427
|
const t3_ = ff_compiler_Unification.Unification_substitute(self_, t1_);
|
|
428
428
|
const t4_ = ff_compiler_Unification.Unification_substitute(self_, t2_);
|
|
429
|
-
|
|
429
|
+
ff_core_Core.throw_(ff_compiler_Syntax.CompileError(at_, ((("Type mismatch: " + ff_compiler_Syntax.Type_show(t3_, [t3_, t4_])) + " vs. ") + ff_compiler_Syntax.Type_show(t4_, [t3_, t4_]))), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError, ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_CompileError)
|
|
430
430
|
} else if((ff_core_String.String_startsWith(name1_, "Function$", 0) && ff_core_String.String_startsWith(name2_, "Function$", 0))) {
|
|
431
431
|
for(let for_a = generics1_, for_i = 0, for_l = for_a.length - 1, for_a2 = generics2_, for_i2 = 0, for_l2 = for_a2.length - 1; for_i < for_l && for_i2 < for_l2; for_i++, for_i2++) {
|
|
432
432
|
const t3_ = for_a[for_i];
|
|
@@ -453,7 +453,7 @@ return
|
|
|
453
453
|
export function Unification_bind(self_, at_, index_, type_) {
|
|
454
454
|
if(ff_compiler_Unification.Unification_occursIn(self_, index_, type_)) {
|
|
455
455
|
const t_ = ff_compiler_Unification.Unification_substitute(self_, type_);
|
|
456
|
-
|
|
456
|
+
ff_core_Core.throw_(ff_compiler_Syntax.CompileError(at_, ((("Infinite type: " + ff_compiler_Syntax.Type_show(ff_compiler_Syntax.TVariable(at_, index_), [t_])) + " = ") + ff_compiler_Syntax.Type_show(t_, []))), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError, ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_CompileError)
|
|
457
457
|
};
|
|
458
458
|
self_.substitution_ = ff_core_Map.Map_add(self_.substitution_, index_, type_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int);
|
|
459
459
|
{
|
|
@@ -668,7 +668,7 @@ const g2_ = (ff_core_List.List_isEmpty(generics2_)
|
|
|
668
668
|
? ""
|
|
669
669
|
: "[...]");
|
|
670
670
|
if((!self_.attemptFixes_)) {
|
|
671
|
-
|
|
671
|
+
ff_core_Core.throw_(ff_compiler_Syntax.CompileError(at_, ((((("No such instance: " + name_) + g2_) + ": ") + constraintName_) + g1_)), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError, ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_CompileError)
|
|
672
672
|
}
|
|
673
673
|
return
|
|
674
674
|
}
|
|
@@ -798,7 +798,7 @@ if(((name1_ !== name2_) || (generics1_.length !== generics2_.length))) {
|
|
|
798
798
|
if((!self_.attemptFixes_)) {
|
|
799
799
|
const t3_ = ff_compiler_Unification.Unification_substitute(self_, t1_);
|
|
800
800
|
const t4_ = ff_compiler_Unification.Unification_substitute(self_, t2_);
|
|
801
|
-
|
|
801
|
+
ff_core_Core.throw_(ff_compiler_Syntax.CompileError(at_, ((("Type mismatch: " + ff_compiler_Syntax.Type_show(t3_, [t3_, t4_])) + " vs. ") + ff_compiler_Syntax.Type_show(t4_, [t3_, t4_]))), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError, ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_CompileError)
|
|
802
802
|
} else if((ff_core_String.String_startsWith(name1_, "Function$", 0) && ff_core_String.String_startsWith(name2_, "Function$", 0))) {
|
|
803
803
|
for(let for_a = generics1_, for_i = 0, for_l = for_a.length - 1, for_a2 = generics2_, for_i2 = 0, for_l2 = for_a2.length - 1; for_i < for_l && for_i2 < for_l2; for_i++, for_i2++) {
|
|
804
804
|
const t3_ = for_a[for_i];
|
|
@@ -825,7 +825,7 @@ return
|
|
|
825
825
|
export async function Unification_bind$(self_, at_, index_, type_, $task) {
|
|
826
826
|
if(ff_compiler_Unification.Unification_occursIn(self_, index_, type_)) {
|
|
827
827
|
const t_ = ff_compiler_Unification.Unification_substitute(self_, type_);
|
|
828
|
-
|
|
828
|
+
ff_core_Core.throw_(ff_compiler_Syntax.CompileError(at_, ((("Infinite type: " + ff_compiler_Syntax.Type_show(ff_compiler_Syntax.TVariable(at_, index_), [t_])) + " = ") + ff_compiler_Syntax.Type_show(t_, []))), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError, ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_CompileError)
|
|
829
829
|
};
|
|
830
830
|
self_.substitution_ = ff_core_Map.Map_add(self_.substitution_, index_, type_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int);
|
|
831
831
|
{
|
|
@@ -1247,7 +1247,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
1247
1247
|
return ff_compiler_Unification.ConstraintGenerics(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_List_List(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Type).deserializeUsing_(serialization_))
|
|
1248
1248
|
}
|
|
1249
1249
|
{
|
|
1250
|
-
|
|
1250
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
1253
|
},
|
|
@@ -1275,7 +1275,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
1275
1275
|
return ff_compiler_Unification.ConstraintGenerics(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_List_List(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Type).deserializeUsing_(serialization_))
|
|
1276
1276
|
}
|
|
1277
1277
|
{
|
|
1278
|
-
|
|
1278
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
@@ -1306,7 +1306,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
1306
1306
|
return ff_compiler_Unification.InstanceKey(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_))
|
|
1307
1307
|
}
|
|
1308
1308
|
{
|
|
1309
|
-
|
|
1309
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
1312
|
},
|
|
@@ -1334,7 +1334,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
1334
1334
|
return ff_compiler_Unification.InstanceKey(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_))
|
|
1335
1335
|
}
|
|
1336
1336
|
{
|
|
1337
|
-
|
|
1337
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
@@ -1368,7 +1368,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
1368
1368
|
return ff_compiler_Unification.InstanceValue(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_List_List(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_List_List(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Constraint).deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_ModuleKey.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_List_List(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Type).deserializeUsing_(serialization_))
|
|
1369
1369
|
}
|
|
1370
1370
|
{
|
|
1371
|
-
|
|
1371
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
},
|
|
@@ -1399,7 +1399,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
1399
1399
|
return ff_compiler_Unification.InstanceValue(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_List_List(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_List_List(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Constraint).deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_ModuleKey.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_List_List(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Type).deserializeUsing_(serialization_))
|
|
1400
1400
|
}
|
|
1401
1401
|
{
|
|
1402
|
-
|
|
1402
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
1403
1403
|
}
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
@@ -516,7 +516,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
516
516
|
return ff_compiler_Workspace.Workspace(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_List_List(ff_compiler_Workspace.ff_core_Serializable_Serializable$ff_compiler_Workspace_WorkspaceRule).deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_))
|
|
517
517
|
}
|
|
518
518
|
{
|
|
519
|
-
|
|
519
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
},
|
|
@@ -545,7 +545,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
545
545
|
return ff_compiler_Workspace.Workspace(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_List_List(ff_compiler_Workspace.ff_core_Serializable_Serializable$ff_compiler_Workspace_WorkspaceRule).deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_))
|
|
546
546
|
}
|
|
547
547
|
{
|
|
548
|
-
|
|
548
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
}
|
|
@@ -577,7 +577,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
577
577
|
return ff_compiler_Workspace.WorkspaceRule(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_core_Option.ff_core_Serializable_Serializable$ff_core_Option_Option(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_))
|
|
578
578
|
}
|
|
579
579
|
{
|
|
580
|
-
|
|
580
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
},
|
|
@@ -606,7 +606,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
606
606
|
return ff_compiler_Workspace.WorkspaceRule(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_core_Option.ff_core_Serializable_Serializable$ff_core_Option_Option(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).deserializeUsing_(serialization_), ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_))
|
|
607
607
|
}
|
|
608
608
|
{
|
|
609
|
-
|
|
609
|
+
return ff_core_Core.throw_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException, ff_core_Serializable.ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException)
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
}
|
|
@@ -205,7 +205,7 @@ return ff_core_Option.None()
|
|
|
205
205
|
|
|
206
206
|
export function Array_grab(self_, index_) {
|
|
207
207
|
if(((index_ < 0) || (index_ >= self_.array.length))) {
|
|
208
|
-
|
|
208
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
209
209
|
};
|
|
210
210
|
return self_.array[index_]
|
|
211
211
|
}
|
|
@@ -251,14 +251,14 @@ return ff_core_Option.Some(self_.array.pop())
|
|
|
251
251
|
|
|
252
252
|
export function Array_set(self_, index_, value_) {
|
|
253
253
|
if(((index_ < 0) || (index_ >= self_.array.length))) {
|
|
254
|
-
|
|
254
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
255
255
|
};
|
|
256
256
|
self_.array[index_] = value_
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
export function Array_modify(self_, index_, body_) {
|
|
260
260
|
if(((index_ < 0) || (index_ >= self_.array.length))) {
|
|
261
|
-
|
|
261
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
262
262
|
};
|
|
263
263
|
self_.array[index_] = body_(self_.array[index_])
|
|
264
264
|
}
|
|
@@ -285,11 +285,11 @@ ff_core_Array.Array_insertList(self_, start_, array_.array, deleteCount_)
|
|
|
285
285
|
|
|
286
286
|
export function Array_insertList(self_, start_, list_, deleteCount_ = 0) {
|
|
287
287
|
if(((start_ < 0) || (start_ > self_.array.length))) {
|
|
288
|
-
|
|
288
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
289
289
|
};
|
|
290
290
|
const deleteEnd_ = (start_ + deleteCount_);
|
|
291
291
|
if(((deleteEnd_ < 0) || (deleteEnd_ > self_.array.length))) {
|
|
292
|
-
|
|
292
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
293
293
|
};
|
|
294
294
|
const insertCount_ = list_.length;
|
|
295
295
|
const delta_ = (insertCount_ - deleteCount_);
|
|
@@ -441,7 +441,7 @@ return ff_core_Option.None()
|
|
|
441
441
|
|
|
442
442
|
export async function Array_grab$(self_, index_, $task) {
|
|
443
443
|
if(((index_ < 0) || (index_ >= self_.array.length))) {
|
|
444
|
-
|
|
444
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
445
445
|
};
|
|
446
446
|
return self_.array[index_]
|
|
447
447
|
}
|
|
@@ -487,14 +487,14 @@ return ff_core_Option.Some(self_.array.pop())
|
|
|
487
487
|
|
|
488
488
|
export async function Array_set$(self_, index_, value_, $task) {
|
|
489
489
|
if(((index_ < 0) || (index_ >= self_.array.length))) {
|
|
490
|
-
|
|
490
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
491
491
|
};
|
|
492
492
|
self_.array[index_] = value_
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
export async function Array_modify$(self_, index_, body_, $task) {
|
|
496
496
|
if(((index_ < 0) || (index_ >= self_.array.length))) {
|
|
497
|
-
|
|
497
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
498
498
|
};
|
|
499
499
|
self_.array[index_] = (await body_(self_.array[index_], $task))
|
|
500
500
|
}
|
|
@@ -521,11 +521,11 @@ ff_core_Array.Array_insertList(self_, start_, array_.array, deleteCount_)
|
|
|
521
521
|
|
|
522
522
|
export async function Array_insertList$(self_, start_, list_, deleteCount_ = 0, $task) {
|
|
523
523
|
if(((start_ < 0) || (start_ > self_.array.length))) {
|
|
524
|
-
|
|
524
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
525
525
|
};
|
|
526
526
|
const deleteEnd_ = (start_ + deleteCount_);
|
|
527
527
|
if(((deleteEnd_ < 0) || (deleteEnd_ > self_.array.length))) {
|
|
528
|
-
|
|
528
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
529
529
|
};
|
|
530
530
|
const insertCount_ = list_.length;
|
|
531
531
|
const delta_ = (insertCount_ - deleteCount_);
|
|
@@ -218,7 +218,7 @@ const low_ = self_.getUint32((byteOffset_ + (littleEndian_
|
|
|
218
218
|
: 4)), littleEndian_);
|
|
219
219
|
const result_ = ((high_ * 0x100000000) + low_);
|
|
220
220
|
if((!Number.isSafeInteger(result_))) {
|
|
221
|
-
|
|
221
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
222
222
|
};
|
|
223
223
|
return result_
|
|
224
224
|
}
|
|
@@ -232,7 +232,7 @@ const low_ = self_.getUint32((byteOffset_ + (littleEndian_
|
|
|
232
232
|
: 4)), littleEndian_);
|
|
233
233
|
const result_ = ((high_ * 0x100000000) + low_);
|
|
234
234
|
if((!Number.isSafeInteger(result_))) {
|
|
235
|
-
|
|
235
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
236
236
|
};
|
|
237
237
|
return result_
|
|
238
238
|
}
|
|
@@ -391,7 +391,7 @@ const low_ = self_.getUint32((byteOffset_ + (littleEndian_
|
|
|
391
391
|
: 4)), littleEndian_);
|
|
392
392
|
const result_ = ((high_ * 0x100000000) + low_);
|
|
393
393
|
if((!Number.isSafeInteger(result_))) {
|
|
394
|
-
|
|
394
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
395
395
|
};
|
|
396
396
|
return result_
|
|
397
397
|
}
|
|
@@ -405,7 +405,7 @@ const low_ = self_.getUint32((byteOffset_ + (littleEndian_
|
|
|
405
405
|
: 4)), littleEndian_);
|
|
406
406
|
const result_ = ((high_ * 0x100000000) + low_);
|
|
407
407
|
if((!Number.isSafeInteger(result_))) {
|
|
408
|
-
|
|
408
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
409
409
|
};
|
|
410
410
|
return result_
|
|
411
411
|
}
|
|
@@ -177,13 +177,13 @@ return ff_core_Try.Failure(e_)
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
export function throw_(exception_, ff_core_Any_HasAnyTag$E) {
|
|
181
|
-
return ff_core_Core.
|
|
180
|
+
export function throw_(exception_, ff_core_Any_HasAnyTag$E, ff_core_Show_Show$E) {
|
|
181
|
+
return ff_core_Core.throwWithMessage_(exception_, ff_core_Show_Show$E.show_(exception_), ff_core_Any_HasAnyTag$E)
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
export function
|
|
185
|
-
const e_ = (new Error());
|
|
186
|
-
e_.ffException = exception_;
|
|
184
|
+
export function throwWithMessage_(exception_, message_, ff_core_Any_HasAnyTag$E) {
|
|
185
|
+
const e_ = (new Error(message_));
|
|
186
|
+
e_.ffException = ff_core_Any.toAny_(exception_, ff_core_Any_HasAnyTag$E);
|
|
187
187
|
throw e_
|
|
188
188
|
}
|
|
189
189
|
|
|
@@ -266,13 +266,13 @@ return ff_core_Try.Failure(e_)
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
export async function throw_$(exception_, ff_core_Any_HasAnyTag$E, $task) {
|
|
270
|
-
return ff_core_Core.
|
|
269
|
+
export async function throw_$(exception_, ff_core_Any_HasAnyTag$E, ff_core_Show_Show$E, $task) {
|
|
270
|
+
return ff_core_Core.throwWithMessage_(exception_, ff_core_Show_Show$E.show_(exception_), ff_core_Any_HasAnyTag$E)
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
export async function
|
|
274
|
-
const e_ = (new Error());
|
|
275
|
-
e_.ffException = exception_;
|
|
273
|
+
export async function throwWithMessage_$(exception_, message_, ff_core_Any_HasAnyTag$E, $task) {
|
|
274
|
+
const e_ = (new Error(message_));
|
|
275
|
+
e_.ffException = ff_core_Any.toAny_(exception_, ff_core_Any_HasAnyTag$E);
|
|
276
276
|
throw e_
|
|
277
277
|
}
|
|
278
278
|
|
|
@@ -290,3 +290,20 @@ async anyTag_$($task) {
|
|
|
290
290
|
return ff_core_Any.internalAnyTag_((("ff:core/Core.GrabException" + "[") + "]"))
|
|
291
291
|
}
|
|
292
292
|
};
|
|
293
|
+
|
|
294
|
+
export const ff_core_Show_Show$ff_core_Core_GrabException = {
|
|
295
|
+
show_(value_) {
|
|
296
|
+
const value_a = value_;
|
|
297
|
+
{
|
|
298
|
+
const z_ = value_a;
|
|
299
|
+
return "GrabException"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
async show_$(value_, $task) {
|
|
303
|
+
const value_a = value_;
|
|
304
|
+
{
|
|
305
|
+
const z_ = value_a;
|
|
306
|
+
return "GrabException"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
};
|
|
@@ -117,7 +117,7 @@ return ff_core_Option.Some(result_)
|
|
|
117
117
|
export function IntMap_grab(self_, key_) {
|
|
118
118
|
const result_ = self_.get(key_);
|
|
119
119
|
if((ff_core_JsValue.JsValue_isUndefined(result_) && (!ff_core_IntMap.IntMap_has(self_, key_)))) {
|
|
120
|
-
|
|
120
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
121
121
|
};
|
|
122
122
|
return result_
|
|
123
123
|
}
|
|
@@ -225,7 +225,7 @@ return ff_core_Option.Some(result_)
|
|
|
225
225
|
export async function IntMap_grab$(self_, key_, $task) {
|
|
226
226
|
const result_ = self_.get(key_);
|
|
227
227
|
if((ff_core_JsValue.JsValue_isUndefined(result_) && (!ff_core_IntMap.IntMap_has(self_, key_)))) {
|
|
228
|
-
|
|
228
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
229
229
|
};
|
|
230
230
|
return result_
|
|
231
231
|
}
|
|
@@ -105,49 +105,49 @@ import * as ff_core_Unit from "../../ff/core/Unit.mjs"
|
|
|
105
105
|
|
|
106
106
|
export function JsValue_grabString(self_) {
|
|
107
107
|
if((!ff_core_JsValue.JsValue_isString(self_))) {
|
|
108
|
-
|
|
108
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
109
109
|
};
|
|
110
110
|
return self_
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
export function JsValue_grabChar(self_) {
|
|
114
114
|
if((!ff_core_JsValue.JsValue_isChar(self_))) {
|
|
115
|
-
|
|
115
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
116
116
|
};
|
|
117
117
|
return self_
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
export function JsValue_grabInt(self_) {
|
|
121
121
|
if((!ff_core_JsValue.JsValue_isInt(self_))) {
|
|
122
|
-
|
|
122
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
123
123
|
};
|
|
124
124
|
return self_
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
export function JsValue_grabFloat(self_) {
|
|
128
128
|
if((!ff_core_JsValue.JsValue_isFloat(self_))) {
|
|
129
|
-
|
|
129
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
130
130
|
};
|
|
131
131
|
return self_
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
export function JsValue_grabBool(self_) {
|
|
135
135
|
if((!ff_core_JsValue.JsValue_isBool(self_))) {
|
|
136
|
-
|
|
136
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
137
137
|
};
|
|
138
138
|
return self_
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
export function JsValue_grabArray(self_) {
|
|
142
142
|
if((!ff_core_JsValue.JsValue_isArray(self_))) {
|
|
143
|
-
|
|
143
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
144
144
|
};
|
|
145
145
|
return self_
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
export function JsValue_grabBuffer(self_) {
|
|
149
149
|
if((!ff_core_JsValue.JsValue_isBuffer(self_))) {
|
|
150
|
-
|
|
150
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
151
151
|
};
|
|
152
152
|
return self_
|
|
153
153
|
}
|
|
@@ -417,7 +417,7 @@ return (new self_(a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, a10_))
|
|
|
417
417
|
|
|
418
418
|
export function JsValue_grabPairs(self_) {
|
|
419
419
|
if((!ff_core_JsValue.JsValue_isObject(self_))) {
|
|
420
|
-
|
|
420
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
421
421
|
};
|
|
422
422
|
return Object.getOwnPropertyNames(self_).map(((name_, i_) => {
|
|
423
423
|
return ff_core_Pair.Pair(name_, self_[name_])
|
|
@@ -430,14 +430,14 @@ return ff_core_List.List_toMap(ff_core_JsValue.JsValue_grabPairs(self_), ff_core
|
|
|
430
430
|
|
|
431
431
|
export function JsValue_grabIntMap(self_) {
|
|
432
432
|
if((!(self_ instanceof Map))) {
|
|
433
|
-
|
|
433
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
434
434
|
};
|
|
435
435
|
return self_
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
export function JsValue_grabStringMap(self_) {
|
|
439
439
|
if((!(self_ instanceof Map))) {
|
|
440
|
-
|
|
440
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
441
441
|
};
|
|
442
442
|
return self_
|
|
443
443
|
}
|
|
@@ -476,49 +476,49 @@ return ff_core_JsValue.JsValue_isNullOrUndefined(self_)
|
|
|
476
476
|
|
|
477
477
|
export async function JsValue_grabString$(self_, $task) {
|
|
478
478
|
if((!ff_core_JsValue.JsValue_isString(self_))) {
|
|
479
|
-
|
|
479
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
480
480
|
};
|
|
481
481
|
return self_
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
export async function JsValue_grabChar$(self_, $task) {
|
|
485
485
|
if((!ff_core_JsValue.JsValue_isChar(self_))) {
|
|
486
|
-
|
|
486
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
487
487
|
};
|
|
488
488
|
return self_
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
export async function JsValue_grabInt$(self_, $task) {
|
|
492
492
|
if((!ff_core_JsValue.JsValue_isInt(self_))) {
|
|
493
|
-
|
|
493
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
494
494
|
};
|
|
495
495
|
return self_
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
export async function JsValue_grabFloat$(self_, $task) {
|
|
499
499
|
if((!ff_core_JsValue.JsValue_isFloat(self_))) {
|
|
500
|
-
|
|
500
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
501
501
|
};
|
|
502
502
|
return self_
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
export async function JsValue_grabBool$(self_, $task) {
|
|
506
506
|
if((!ff_core_JsValue.JsValue_isBool(self_))) {
|
|
507
|
-
|
|
507
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
508
508
|
};
|
|
509
509
|
return self_
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
export async function JsValue_grabArray$(self_, $task) {
|
|
513
513
|
if((!ff_core_JsValue.JsValue_isArray(self_))) {
|
|
514
|
-
|
|
514
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
515
515
|
};
|
|
516
516
|
return self_
|
|
517
517
|
}
|
|
518
518
|
|
|
519
519
|
export async function JsValue_grabBuffer$(self_, $task) {
|
|
520
520
|
if((!ff_core_JsValue.JsValue_isBuffer(self_))) {
|
|
521
|
-
|
|
521
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
522
522
|
};
|
|
523
523
|
return self_
|
|
524
524
|
}
|
|
@@ -788,7 +788,7 @@ return (new self_(a1_, a2_, a3_, a4_, a5_, a6_, a7_, a8_, a9_, a10_))
|
|
|
788
788
|
|
|
789
789
|
export async function JsValue_grabPairs$(self_, $task) {
|
|
790
790
|
if((!ff_core_JsValue.JsValue_isObject(self_))) {
|
|
791
|
-
|
|
791
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
792
792
|
};
|
|
793
793
|
return Object.getOwnPropertyNames(self_).map(((name_, i_) => {
|
|
794
794
|
return ff_core_Pair.Pair(name_, self_[name_])
|
|
@@ -801,14 +801,14 @@ return ff_core_List.List_toMap(ff_core_JsValue.JsValue_grabPairs(self_), ff_core
|
|
|
801
801
|
|
|
802
802
|
export async function JsValue_grabIntMap$(self_, $task) {
|
|
803
803
|
if((!(self_ instanceof Map))) {
|
|
804
|
-
|
|
804
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
805
805
|
};
|
|
806
806
|
return self_
|
|
807
807
|
}
|
|
808
808
|
|
|
809
809
|
export async function JsValue_grabStringMap$(self_, $task) {
|
|
810
810
|
if((!(self_ instanceof Map))) {
|
|
811
|
-
|
|
811
|
+
ff_core_Core.throw_(ff_core_Core.GrabException(), ff_core_Core.ff_core_Any_HasAnyTag$ff_core_Core_GrabException, ff_core_Core.ff_core_Show_Show$ff_core_Core_GrabException)
|
|
812
812
|
};
|
|
813
813
|
return self_
|
|
814
814
|
}
|