firefly-compiler 0.5.15 → 0.5.16
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/compiler/JsEmitter.ff +1 -1
- package/output/js/ff/compiler/Builder.mjs +2 -2
- package/output/js/ff/compiler/Compiler.mjs +2 -2
- package/output/js/ff/compiler/Inference.mjs +10 -10
- package/output/js/ff/compiler/JsEmitter.mjs +2 -2
- package/output/js/ff/compiler/Parser.mjs +4 -4
- package/output/js/ff/compiler/Resolver.mjs +2 -2
- package/output/js/ff/compiler/Unification.mjs +4 -4
- package/output/js/ff/compiler/Workspace.mjs +2 -2
- package/output/js/ff/core/List.mjs +2 -2
- package/package.json +1 -1
- package/vscode/package.json +1 -1
package/compiler/JsEmitter.ff
CHANGED
|
@@ -696,7 +696,7 @@ extend self: JsEmitter {
|
|
|
696
696
|
MatchCase(_, [PVariable(_, name)], [], body)
|
|
697
697
|
]))]} =>
|
|
698
698
|
Some(
|
|
699
|
-
"for(
|
|
699
|
+
"for(const for_o = " + self.emitTerm(list, async) + "; for_o.Some;) {\n" +
|
|
700
700
|
name.map {"const " + escapeKeyword(_) + " = for_o.value_;\n"}.else {""} +
|
|
701
701
|
self.emitStatements(body, last, async) +
|
|
702
702
|
"\nbreak\n}"
|
|
@@ -137,7 +137,7 @@ if(printMeasurements_) {
|
|
|
137
137
|
ff_compiler_Compiler.Compiler_printMeasurements(compiler_)
|
|
138
138
|
};
|
|
139
139
|
ff_core_Map.Map_each(resolvedDependencies_.packagePaths_, ((packagePair_, packagePath_) => {
|
|
140
|
-
for(
|
|
140
|
+
for(const for_o = ff_core_Map.Map_get(resolvedDependencies_.packages_, packagePair_, ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_PackagePair); for_o.Some;) {
|
|
141
141
|
const packageInfo_ = for_o.value_;
|
|
142
142
|
ff_compiler_Builder.processIncludes_(jsPathFile_, packagePath_, packageInfo_)
|
|
143
143
|
break
|
|
@@ -336,7 +336,7 @@ if(printMeasurements_) {
|
|
|
336
336
|
(await ff_compiler_Compiler.Compiler_printMeasurements$(compiler_, $task))
|
|
337
337
|
};
|
|
338
338
|
(await ff_core_Map.Map_each$(resolvedDependencies_.packagePaths_, (async (packagePair_, packagePath_, $task) => {
|
|
339
|
-
for(
|
|
339
|
+
for(const for_o = ff_core_Map.Map_get(resolvedDependencies_.packages_, packagePair_, ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_PackagePair); for_o.Some;) {
|
|
340
340
|
const packageInfo_ = for_o.value_;
|
|
341
341
|
(await ff_compiler_Builder.processIncludes_$(jsPathFile_, packagePath_, packageInfo_, $task))
|
|
342
342
|
break
|
|
@@ -171,7 +171,7 @@ return ff_compiler_ModuleCache.ModuleCache_cacheParsedModule(self_.cache_, self_
|
|
|
171
171
|
const packageName_ = ff_compiler_Syntax.PackagePair_groupName(packagePair_, ":");
|
|
172
172
|
return ff_compiler_Compiler.Compiler_measure(self_, "Parse", packagePair_, moduleName_, (() => {
|
|
173
173
|
const code_ = ff_core_Option.Option_else(ff_core_Map.Map_get(self_.virtualFiles_, ff_core_Path.Path_absolute(path_), ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String), (() => {
|
|
174
|
-
for(
|
|
174
|
+
for(const for_o = importedAt_; for_o.Some;) {
|
|
175
175
|
const at_ = for_o.value_;
|
|
176
176
|
if((!ff_core_Path.Path_exists(path_, false, false, false))) {
|
|
177
177
|
throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_compiler_Syntax.CompileError(at_, ((("Imported module not found: " + packageName_) + "/") + moduleName_)), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError)})
|
|
@@ -304,7 +304,7 @@ return (await ff_compiler_ModuleCache.ModuleCache_cacheParsedModule$(self_.cache
|
|
|
304
304
|
const packageName_ = ff_compiler_Syntax.PackagePair_groupName(packagePair_, ":");
|
|
305
305
|
return (await ff_compiler_Compiler.Compiler_measure$(self_, "Parse", packagePair_, moduleName_, (async ($task) => {
|
|
306
306
|
const code_ = (await ff_core_Option.Option_else$(ff_core_Map.Map_get(self_.virtualFiles_, (await ff_core_Path.Path_absolute$(path_, $task)), ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String), (async ($task) => {
|
|
307
|
-
for(
|
|
307
|
+
for(const for_o = importedAt_; for_o.Some;) {
|
|
308
308
|
const at_ = for_o.value_;
|
|
309
309
|
if((!(await ff_core_Path.Path_exists$(path_, false, false, false, $task)))) {
|
|
310
310
|
throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_compiler_Syntax.CompileError(at_, ((("Imported module not found: " + packageName_) + "/") + moduleName_)), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError)})
|
|
@@ -669,7 +669,7 @@ if(_1.EField) {
|
|
|
669
669
|
const e_ = _1;
|
|
670
670
|
const recordType_ = ff_compiler_Unification.Unification_freshUnificationVariable(self_.unification_, e_.at_);
|
|
671
671
|
if(ff_compiler_LspHook.LspHook_isAt(self_.lspHook_, term_.at_)) {
|
|
672
|
-
for(
|
|
672
|
+
for(const for_o = hookRecordTypeBox_; for_o.Some;) {
|
|
673
673
|
const _w1 = for_o.value_;
|
|
674
674
|
_w1.value_ = ff_core_Option.Some(recordType_)
|
|
675
675
|
break
|
|
@@ -1203,7 +1203,7 @@ if(_1.EField) {
|
|
|
1203
1203
|
const f_ = _1;
|
|
1204
1204
|
const recordType_ = ff_compiler_Unification.Unification_freshUnificationVariable(self_.unification_, f_.at_);
|
|
1205
1205
|
if(ff_compiler_LspHook.LspHook_isAt(self_.lspHook_, term_.at_)) {
|
|
1206
|
-
for(
|
|
1206
|
+
for(const for_o = hookRecordTypeBox_; for_o.Some;) {
|
|
1207
1207
|
const _w1 = for_o.value_;
|
|
1208
1208
|
_w1.value_ = ff_core_Option.Some(recordType_)
|
|
1209
1209
|
break
|
|
@@ -1507,7 +1507,7 @@ const arguments_ = ff_core_List.List_map(ff_core_List.List_zip(e_.arguments_, ar
|
|
|
1507
1507
|
{
|
|
1508
1508
|
const argument_ = _1.first_;
|
|
1509
1509
|
const t_ = _1.second_;
|
|
1510
|
-
for(
|
|
1510
|
+
for(const for_o = argument_.name_; for_o.Some;) {
|
|
1511
1511
|
const name_ = for_o.value_;
|
|
1512
1512
|
throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_compiler_Syntax.CompileError(argument_.at_, ("Named argument not allowed here: " + name_)), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError)})
|
|
1513
1513
|
break
|
|
@@ -1522,7 +1522,7 @@ return ff_compiler_Syntax.Argument(_c.at_, _c.name_, ff_compiler_Inference.Infer
|
|
|
1522
1522
|
return
|
|
1523
1523
|
}
|
|
1524
1524
|
}));
|
|
1525
|
-
for(
|
|
1525
|
+
for(const for_o = ff_core_List.List_first(e_.typeArguments_); for_o.Some;) {
|
|
1526
1526
|
const typeArgument_ = for_o.value_;
|
|
1527
1527
|
throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_compiler_Syntax.CompileError(typeArgument_.at_, "Type arguments not allowed here"), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError)})
|
|
1528
1528
|
break
|
|
@@ -1889,7 +1889,7 @@ return ff_core_Option.Option_contains(_w1.name_, p_.name_, ff_core_Equal.ff_core
|
|
|
1889
1889
|
{
|
|
1890
1890
|
const at_ = _1.at_;
|
|
1891
1891
|
const e_ = _1.value_;
|
|
1892
|
-
for(
|
|
1892
|
+
for(const for_o = ff_core_Array.Array_indexWhere(remainingArguments_, ((_w1) => {
|
|
1893
1893
|
return ff_core_Option.Option_contains(_w1.name_, p_.name_, ff_core_Equal.ff_core_Equal_Equal$ff_core_String_String)
|
|
1894
1894
|
})); for_o.Some;) {
|
|
1895
1895
|
const _w1 = for_o.value_;
|
|
@@ -2531,7 +2531,7 @@ if(_1.EField) {
|
|
|
2531
2531
|
const e_ = _1;
|
|
2532
2532
|
const recordType_ = ff_compiler_Unification.Unification_freshUnificationVariable(self_.unification_, e_.at_);
|
|
2533
2533
|
if(ff_compiler_LspHook.LspHook_isAt(self_.lspHook_, term_.at_)) {
|
|
2534
|
-
for(
|
|
2534
|
+
for(const for_o = hookRecordTypeBox_; for_o.Some;) {
|
|
2535
2535
|
const _w1 = for_o.value_;
|
|
2536
2536
|
_w1.value_ = ff_core_Option.Some(recordType_)
|
|
2537
2537
|
break
|
|
@@ -3065,7 +3065,7 @@ if(_1.EField) {
|
|
|
3065
3065
|
const f_ = _1;
|
|
3066
3066
|
const recordType_ = ff_compiler_Unification.Unification_freshUnificationVariable(self_.unification_, f_.at_);
|
|
3067
3067
|
if(ff_compiler_LspHook.LspHook_isAt(self_.lspHook_, term_.at_)) {
|
|
3068
|
-
for(
|
|
3068
|
+
for(const for_o = hookRecordTypeBox_; for_o.Some;) {
|
|
3069
3069
|
const _w1 = for_o.value_;
|
|
3070
3070
|
_w1.value_ = ff_core_Option.Some(recordType_)
|
|
3071
3071
|
break
|
|
@@ -3369,7 +3369,7 @@ const arguments_ = ff_core_List.List_map(ff_core_List.List_zip(e_.arguments_, ar
|
|
|
3369
3369
|
{
|
|
3370
3370
|
const argument_ = _1.first_;
|
|
3371
3371
|
const t_ = _1.second_;
|
|
3372
|
-
for(
|
|
3372
|
+
for(const for_o = argument_.name_; for_o.Some;) {
|
|
3373
3373
|
const name_ = for_o.value_;
|
|
3374
3374
|
throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_compiler_Syntax.CompileError(argument_.at_, ("Named argument not allowed here: " + name_)), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError)})
|
|
3375
3375
|
break
|
|
@@ -3384,7 +3384,7 @@ return ff_compiler_Syntax.Argument(_c.at_, _c.name_, ff_compiler_Inference.Infer
|
|
|
3384
3384
|
return
|
|
3385
3385
|
}
|
|
3386
3386
|
}));
|
|
3387
|
-
for(
|
|
3387
|
+
for(const for_o = ff_core_List.List_first(e_.typeArguments_); for_o.Some;) {
|
|
3388
3388
|
const typeArgument_ = for_o.value_;
|
|
3389
3389
|
throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_compiler_Syntax.CompileError(typeArgument_.at_, "Type arguments not allowed here"), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError)})
|
|
3390
3390
|
break
|
|
@@ -3751,7 +3751,7 @@ return ff_core_Option.Option_contains(_w1.name_, p_.name_, ff_core_Equal.ff_core
|
|
|
3751
3751
|
{
|
|
3752
3752
|
const at_ = _1.at_;
|
|
3753
3753
|
const e_ = _1.value_;
|
|
3754
|
-
for(
|
|
3754
|
+
for(const for_o = ff_core_Array.Array_indexWhere(remainingArguments_, ((_w1) => {
|
|
3755
3755
|
return ff_core_Option.Option_contains(_w1.name_, p_.name_, ff_core_Equal.ff_core_Equal_Equal$ff_core_String_String)
|
|
3756
3756
|
})); for_o.Some;) {
|
|
3757
3757
|
const _w1 = for_o.value_;
|
|
@@ -1977,7 +1977,7 @@ if(_guard1.length === 2 && _guard1[1].ELambda && _guard1[1].lambda_.cases_.lengt
|
|
|
1977
1977
|
const list_ = _guard1[0];
|
|
1978
1978
|
const name_ = _guard1[1].lambda_.cases_[0].patterns_[0].name_;
|
|
1979
1979
|
const body_ = _guard1[1].lambda_.cases_[0].body_;
|
|
1980
|
-
return ff_core_Option.Some(((((("for(
|
|
1980
|
+
return ff_core_Option.Some(((((("for(const for_o = " + ff_compiler_JsEmitter.JsEmitter_emitTerm(self_, list_, async_)) + "; for_o.Some;) {\n") + ff_core_Option.Option_else(ff_core_Option.Option_map(name_, ((_w1) => {
|
|
1981
1981
|
return (("const " + ff_compiler_JsEmitter.escapeKeyword_(_w1)) + " = for_o.value_;\n")
|
|
1982
1982
|
})), (() => {
|
|
1983
1983
|
return ""
|
|
@@ -3964,7 +3964,7 @@ if(_guard1.length === 2 && _guard1[1].ELambda && _guard1[1].lambda_.cases_.lengt
|
|
|
3964
3964
|
const list_ = _guard1[0];
|
|
3965
3965
|
const name_ = _guard1[1].lambda_.cases_[0].patterns_[0].name_;
|
|
3966
3966
|
const body_ = _guard1[1].lambda_.cases_[0].body_;
|
|
3967
|
-
return ff_core_Option.Some(((((("for(
|
|
3967
|
+
return ff_core_Option.Some(((((("for(const for_o = " + (await ff_compiler_JsEmitter.JsEmitter_emitTerm$(self_, list_, async_, $task))) + "; for_o.Some;) {\n") + ff_core_Option.Option_else(ff_core_Option.Option_map(name_, ((_w1) => {
|
|
3968
3968
|
return (("const " + ff_compiler_JsEmitter.escapeKeyword_(_w1)) + " = for_o.value_;\n")
|
|
3969
3969
|
})), (() => {
|
|
3970
3970
|
return ""
|
|
@@ -324,7 +324,7 @@ return ff_compiler_Parser.Parser_skip(self_, kind_)
|
|
|
324
324
|
|
|
325
325
|
export function Parser_parseModuleWithoutPackageInfo(self_) {
|
|
326
326
|
const moduleWithPackageInfo_ = ff_compiler_Parser.Parser_parseModuleWithPackageInfo(self_);
|
|
327
|
-
for(
|
|
327
|
+
for(const for_o = moduleWithPackageInfo_.packageInfo_; for_o.Some;) {
|
|
328
328
|
const info_ = for_o.value_;
|
|
329
329
|
throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_compiler_Syntax.CompileError(info_.package_.at_, "Package and dependencies already declared in package.ff"), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError)})
|
|
330
330
|
break
|
|
@@ -1573,7 +1573,7 @@ const member_ = ff_compiler_Syntax.EString(ff_compiler_Token.Token_at(token_), (
|
|
|
1573
1573
|
: (("\"" + ff_compiler_Token.Token_raw(token_)) + "\"")));
|
|
1574
1574
|
if(ff_compiler_Token.Token_rawIs(ff_compiler_Parser.Parser_current(self_), "(")) {
|
|
1575
1575
|
const arguments_ = ff_compiler_Parser.Parser_parseFunctionArguments(self_, record_.at_, false);
|
|
1576
|
-
for(
|
|
1576
|
+
for(const for_o = ff_core_List.List_find(arguments_.first_, ((_w1) => {
|
|
1577
1577
|
return (!ff_core_Option.Option_isEmpty(_w1.name_))
|
|
1578
1578
|
})); for_o.Some;) {
|
|
1579
1579
|
const argument_ = for_o.value_;
|
|
@@ -1910,7 +1910,7 @@ return ff_compiler_Parser.Parser_skip(self_, kind_)
|
|
|
1910
1910
|
|
|
1911
1911
|
export async function Parser_parseModuleWithoutPackageInfo$(self_, $task) {
|
|
1912
1912
|
const moduleWithPackageInfo_ = ff_compiler_Parser.Parser_parseModuleWithPackageInfo(self_);
|
|
1913
|
-
for(
|
|
1913
|
+
for(const for_o = moduleWithPackageInfo_.packageInfo_; for_o.Some;) {
|
|
1914
1914
|
const info_ = for_o.value_;
|
|
1915
1915
|
throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_compiler_Syntax.CompileError(info_.package_.at_, "Package and dependencies already declared in package.ff"), ff_compiler_Syntax.ff_core_Any_HasAnyTag$ff_compiler_Syntax_CompileError)})
|
|
1916
1916
|
break
|
|
@@ -3159,7 +3159,7 @@ const member_ = ff_compiler_Syntax.EString(ff_compiler_Token.Token_at(token_), (
|
|
|
3159
3159
|
: (("\"" + ff_compiler_Token.Token_raw(token_)) + "\"")));
|
|
3160
3160
|
if(ff_compiler_Token.Token_rawIs(ff_compiler_Parser.Parser_current(self_), "(")) {
|
|
3161
3161
|
const arguments_ = ff_compiler_Parser.Parser_parseFunctionArguments(self_, record_.at_, false);
|
|
3162
|
-
for(
|
|
3162
|
+
for(const for_o = ff_core_List.List_find(arguments_.first_, ((_w1) => {
|
|
3163
3163
|
return (!ff_core_Option.Option_isEmpty(_w1.name_))
|
|
3164
3164
|
})); for_o.Some;) {
|
|
3165
3165
|
const argument_ = for_o.value_;
|
|
@@ -867,7 +867,7 @@ return ff_compiler_Syntax.Signature(_c.at_, _c.name_, _c.member_, ["Q$", ...sign
|
|
|
867
867
|
: (((_c) => {
|
|
868
868
|
return ff_compiler_Syntax.Signature(_c.at_, _c.name_, _c.member_, _c.generics_, _c.constraints_, _c.parameters_, _c.returnType_, ff_compiler_Resolver.Resolver_freshUnificationVariable(self_, signature_.at_))
|
|
869
869
|
}))(signature_));
|
|
870
|
-
for(
|
|
870
|
+
for(const for_o = ff_core_List.List_find(newSignature_.generics_, ((name_) => {
|
|
871
871
|
return ff_core_Set.Set_contains(self_.typeParameters_, name_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String)
|
|
872
872
|
})); for_o.Some;) {
|
|
873
873
|
const name_ = for_o.value_;
|
|
@@ -1812,7 +1812,7 @@ return ff_compiler_Syntax.Signature(_c.at_, _c.name_, _c.member_, ["Q$", ...sign
|
|
|
1812
1812
|
: (((_c) => {
|
|
1813
1813
|
return ff_compiler_Syntax.Signature(_c.at_, _c.name_, _c.member_, _c.generics_, _c.constraints_, _c.parameters_, _c.returnType_, ff_compiler_Resolver.Resolver_freshUnificationVariable(self_, signature_.at_))
|
|
1814
1814
|
}))(signature_));
|
|
1815
|
-
for(
|
|
1815
|
+
for(const for_o = ff_core_List.List_find(newSignature_.generics_, ((name_) => {
|
|
1816
1816
|
return ff_core_Set.Set_contains(self_.typeParameters_, name_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String)
|
|
1817
1817
|
})); for_o.Some;) {
|
|
1818
1818
|
const name_ = for_o.value_;
|
|
@@ -469,7 +469,7 @@ const t_ = ff_compiler_Unification.Unification_substitute(self_, type_);
|
|
|
469
469
|
throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(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)})
|
|
470
470
|
};
|
|
471
471
|
self_.substitution_ = ff_core_Map.Map_add(self_.substitution_, index_, type_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int);
|
|
472
|
-
for(
|
|
472
|
+
for(const for_o = ff_core_Map.Map_get(self_.constraints_, index_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int); for_o.Some;) {
|
|
473
473
|
const map_ = for_o.value_;
|
|
474
474
|
self_.constraints_ = ff_core_Map.Map_remove(self_.constraints_, index_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int);
|
|
475
475
|
ff_core_List.List_each(ff_core_Map.Map_pairs(map_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String), ((_1) => {
|
|
@@ -483,7 +483,7 @@ return
|
|
|
483
483
|
}))
|
|
484
484
|
break
|
|
485
485
|
};
|
|
486
|
-
for(
|
|
486
|
+
for(const for_o = ff_core_Map.Map_get(self_.affects_, index_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int); for_o.Some;) {
|
|
487
487
|
const affected_ = for_o.value_;
|
|
488
488
|
ff_core_Map.Map_remove(self_.affects_, index_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int);
|
|
489
489
|
ff_core_Set.Set_each(affected_, ((i_) => {
|
|
@@ -850,7 +850,7 @@ const t_ = ff_compiler_Unification.Unification_substitute(self_, type_);
|
|
|
850
850
|
throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(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)})
|
|
851
851
|
};
|
|
852
852
|
self_.substitution_ = ff_core_Map.Map_add(self_.substitution_, index_, type_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int);
|
|
853
|
-
for(
|
|
853
|
+
for(const for_o = ff_core_Map.Map_get(self_.constraints_, index_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int); for_o.Some;) {
|
|
854
854
|
const map_ = for_o.value_;
|
|
855
855
|
self_.constraints_ = ff_core_Map.Map_remove(self_.constraints_, index_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int);
|
|
856
856
|
ff_core_List.List_each(ff_core_Map.Map_pairs(map_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String), ((_1) => {
|
|
@@ -864,7 +864,7 @@ return
|
|
|
864
864
|
}))
|
|
865
865
|
break
|
|
866
866
|
};
|
|
867
|
-
for(
|
|
867
|
+
for(const for_o = ff_core_Map.Map_get(self_.affects_, index_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int); for_o.Some;) {
|
|
868
868
|
const affected_ = for_o.value_;
|
|
869
869
|
ff_core_Map.Map_remove(self_.affects_, index_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int);
|
|
870
870
|
ff_core_Set.Set_each(affected_, ((i_) => {
|
|
@@ -136,7 +136,7 @@ const rules_ = ff_core_List.List_collect(lines_, ((line_) => {
|
|
|
136
136
|
const columns_ = ff_core_List.List_filter(ff_core_String.String_split(ff_core_String.String_replace(line_, "\t", " "), 32), ((_w1) => {
|
|
137
137
|
return (ff_core_String.String_size(_w1) !== 0)
|
|
138
138
|
}));
|
|
139
|
-
for(
|
|
139
|
+
for(const for_o = defaultLocation_; for_o.Some;) {
|
|
140
140
|
ff_core_Core.panic_(("Unexpected rule after the * rule: " + line_))
|
|
141
141
|
break
|
|
142
142
|
};
|
|
@@ -201,7 +201,7 @@ const rules_ = ff_core_List.List_collect(lines_, ((line_) => {
|
|
|
201
201
|
const columns_ = ff_core_List.List_filter(ff_core_String.String_split(ff_core_String.String_replace(line_, "\t", " "), 32), ((_w1) => {
|
|
202
202
|
return (ff_core_String.String_size(_w1) !== 0)
|
|
203
203
|
}));
|
|
204
|
-
for(
|
|
204
|
+
for(const for_o = defaultLocation_; for_o.Some;) {
|
|
205
205
|
ff_core_Core.panic_(("Unexpected rule after the * rule: " + line_))
|
|
206
206
|
break
|
|
207
207
|
};
|
|
@@ -466,7 +466,7 @@ export function List_collect(self_, body_) {
|
|
|
466
466
|
let result_ = ff_core_Array.new_();
|
|
467
467
|
for(let for_i = 0, for_a = self_, for_l = for_a.length; for_i < for_l; for_i++) {
|
|
468
468
|
const x_ = for_a[for_i];
|
|
469
|
-
for(
|
|
469
|
+
for(const for_o = body_(x_); for_o.Some;) {
|
|
470
470
|
const _w1 = for_o.value_;
|
|
471
471
|
result_.array.push(_w1)
|
|
472
472
|
break
|
|
@@ -832,7 +832,7 @@ export async function List_collect$(self_, body_, $task) {
|
|
|
832
832
|
let result_ = ff_core_Array.new_();
|
|
833
833
|
for(let for_i = 0, for_a = self_, for_l = for_a.length; for_i < for_l; for_i++) {
|
|
834
834
|
const x_ = for_a[for_i];
|
|
835
|
-
for(
|
|
835
|
+
for(const for_o = (await body_(x_, $task)); for_o.Some;) {
|
|
836
836
|
const _w1 = for_o.value_;
|
|
837
837
|
result_.array.push(_w1)
|
|
838
838
|
break
|
package/package.json
CHANGED