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
|
@@ -648,19 +648,19 @@ return ff_core_Option.Some(Object.keys(self_))
|
|
|
648
648
|
|
|
649
649
|
export function Json_grabField(self_, key_) {
|
|
650
650
|
return ff_core_Option.Option_else(ff_core_Json.Json_getField(self_, key_), (() => {
|
|
651
|
-
|
|
651
|
+
return 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)
|
|
652
652
|
}))
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
export function Json_grabIndex(self_, key_) {
|
|
656
656
|
return ff_core_Option.Option_else(ff_core_Json.Json_getIndex(self_, key_), (() => {
|
|
657
|
-
|
|
657
|
+
return 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)
|
|
658
658
|
}))
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
export function Json_grabFields(self_) {
|
|
662
662
|
return ff_core_Option.Option_else(ff_core_Json.Json_getFields(self_), (() => {
|
|
663
|
-
|
|
663
|
+
return 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)
|
|
664
664
|
}))
|
|
665
665
|
}
|
|
666
666
|
|
|
@@ -682,7 +682,7 @@ return ff_core_Array.Array_drain(array_)
|
|
|
682
682
|
|
|
683
683
|
export function Json_each(self_, body_) {
|
|
684
684
|
if((!ff_core_Json.Json_isObject(self_))) {
|
|
685
|
-
|
|
685
|
+
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)
|
|
686
686
|
};
|
|
687
687
|
ff_core_JsValue.JsValue_each(Object.entries(self_), ((p_) => {
|
|
688
688
|
body_(p_[0], p_[1])
|
|
@@ -691,7 +691,7 @@ body_(p_[0], p_[1])
|
|
|
691
691
|
|
|
692
692
|
export function Json_eachWhile(self_, body_) {
|
|
693
693
|
if((!ff_core_Json.Json_isObject(self_))) {
|
|
694
|
-
|
|
694
|
+
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)
|
|
695
695
|
};
|
|
696
696
|
ff_core_JsValue.JsValue_eachWhile(Object.entries(self_), ((p_) => {
|
|
697
697
|
return body_(p_[0], p_[1])
|
|
@@ -870,19 +870,19 @@ return ff_core_Option.Some(Object.keys(self_))
|
|
|
870
870
|
|
|
871
871
|
export async function Json_grabField$(self_, key_, $task) {
|
|
872
872
|
return ff_core_Option.Option_else(ff_core_Json.Json_getField(self_, key_), (() => {
|
|
873
|
-
|
|
873
|
+
return 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)
|
|
874
874
|
}))
|
|
875
875
|
}
|
|
876
876
|
|
|
877
877
|
export async function Json_grabIndex$(self_, key_, $task) {
|
|
878
878
|
return ff_core_Option.Option_else(ff_core_Json.Json_getIndex(self_, key_), (() => {
|
|
879
|
-
|
|
879
|
+
return 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)
|
|
880
880
|
}))
|
|
881
881
|
}
|
|
882
882
|
|
|
883
883
|
export async function Json_grabFields$(self_, $task) {
|
|
884
884
|
return ff_core_Option.Option_else(ff_core_Json.Json_getFields(self_), (() => {
|
|
885
|
-
|
|
885
|
+
return 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)
|
|
886
886
|
}))
|
|
887
887
|
}
|
|
888
888
|
|
|
@@ -904,7 +904,7 @@ return ff_core_Array.Array_drain(array_)
|
|
|
904
904
|
|
|
905
905
|
export async function Json_each$(self_, body_, $task) {
|
|
906
906
|
if((!ff_core_Json.Json_isObject(self_))) {
|
|
907
|
-
|
|
907
|
+
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)
|
|
908
908
|
};
|
|
909
909
|
(await ff_core_JsValue.JsValue_each$(Object.entries(self_), (async (p_, $task) => {
|
|
910
910
|
(await body_(p_[0], p_[1], $task))
|
|
@@ -913,7 +913,7 @@ throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_core_Core.G
|
|
|
913
913
|
|
|
914
914
|
export async function Json_eachWhile$(self_, body_, $task) {
|
|
915
915
|
if((!ff_core_Json.Json_isObject(self_))) {
|
|
916
|
-
|
|
916
|
+
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)
|
|
917
917
|
};
|
|
918
918
|
(await ff_core_JsValue.JsValue_eachWhile$(Object.entries(self_), (async (p_, $task) => {
|
|
919
919
|
return (await body_(p_[0], p_[1], $task))
|
|
@@ -179,7 +179,7 @@ return ff_core_Option.None()
|
|
|
179
179
|
|
|
180
180
|
export function List_grab(self_, index_) {
|
|
181
181
|
if(((index_ < 0) || (index_ >= self_.length))) {
|
|
182
|
-
|
|
182
|
+
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)
|
|
183
183
|
};
|
|
184
184
|
return self_[index_]
|
|
185
185
|
}
|
|
@@ -304,7 +304,7 @@ return value_
|
|
|
304
304
|
|
|
305
305
|
export function List_modify(self_, index_, body_) {
|
|
306
306
|
if(((index_ < 0) || (index_ >= self_.length))) {
|
|
307
|
-
|
|
307
|
+
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)
|
|
308
308
|
};
|
|
309
309
|
const result_ = self_.slice();
|
|
310
310
|
result_[index_] = body_(result_[index_]);
|
|
@@ -571,7 +571,7 @@ return ff_core_Option.None()
|
|
|
571
571
|
|
|
572
572
|
export async function List_grab$(self_, index_, $task) {
|
|
573
573
|
if(((index_ < 0) || (index_ >= self_.length))) {
|
|
574
|
-
|
|
574
|
+
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)
|
|
575
575
|
};
|
|
576
576
|
return self_[index_]
|
|
577
577
|
}
|
|
@@ -696,7 +696,7 @@ return value_
|
|
|
696
696
|
|
|
697
697
|
export async function List_modify$(self_, index_, body_, $task) {
|
|
698
698
|
if(((index_ < 0) || (index_ >= self_.length))) {
|
|
699
|
-
|
|
699
|
+
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)
|
|
700
700
|
};
|
|
701
701
|
const result_ = self_.slice();
|
|
702
702
|
result_[index_] = (await body_(result_[index_], $task));
|
|
@@ -130,7 +130,7 @@ ff_core_Queue.Queue_remove(self_.queue_, key_)
|
|
|
130
130
|
|
|
131
131
|
export function Lock_release(self_) {
|
|
132
132
|
if((self_.owner_ !== $task)) {
|
|
133
|
-
|
|
133
|
+
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)
|
|
134
134
|
} else if((self_.level_ > 1)) {
|
|
135
135
|
self_.level_ -= 1
|
|
136
136
|
} else {
|
|
@@ -174,7 +174,7 @@ ff_core_Queue.Queue_remove(self_.queue_, key_)
|
|
|
174
174
|
|
|
175
175
|
export async function Lock_release$(self_, $task) {
|
|
176
176
|
if((self_.owner_ !== $task)) {
|
|
177
|
-
|
|
177
|
+
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)
|
|
178
178
|
} else if((self_.level_ > 1)) {
|
|
179
179
|
self_.level_ -= 1
|
|
180
180
|
} else {
|
|
@@ -200,7 +200,7 @@ return (await body_($task))
|
|
|
200
200
|
|
|
201
201
|
export function LockCondition_sleep(self_) {
|
|
202
202
|
if((self_.lock_.owner_ !== $task)) {
|
|
203
|
-
|
|
203
|
+
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)
|
|
204
204
|
};
|
|
205
205
|
;
|
|
206
206
|
const level_ = self_.lock_.level_;
|
|
@@ -274,7 +274,7 @@ ff_core_Queue.Queue_clear(self_.queue_)
|
|
|
274
274
|
|
|
275
275
|
export async function LockCondition_sleep$(self_, $task) {
|
|
276
276
|
if((self_.lock_.owner_ !== $task)) {
|
|
277
|
-
|
|
277
|
+
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)
|
|
278
278
|
};
|
|
279
279
|
ff_core_Task.Task_throwIfAborted($task);
|
|
280
280
|
const level_ = self_.lock_.level_;
|
|
@@ -126,7 +126,7 @@ return ff_core_Path.Path(nodePath_.join(path_.absolutePath_, file_))
|
|
|
126
126
|
|
|
127
127
|
export function internalProcessError_(problem_) {
|
|
128
128
|
try {
|
|
129
|
-
|
|
129
|
+
return ff_core_Core.throw_(ff_core_NodeSystem.ProcessException(problem_), ff_core_NodeSystem.ff_core_Any_HasAnyTag$ff_core_NodeSystem_ProcessException, ff_core_NodeSystem.ff_core_Show_Show$ff_core_NodeSystem_ProcessException)
|
|
130
130
|
} catch(error_) {
|
|
131
131
|
return error_
|
|
132
132
|
}
|
|
@@ -143,7 +143,7 @@ return ff_core_Path.Path(nodePath_.join(path_.absolutePath_, file_))
|
|
|
143
143
|
|
|
144
144
|
export async function internalProcessError_$(problem_, $task) {
|
|
145
145
|
try {
|
|
146
|
-
|
|
146
|
+
return ff_core_Core.throw_(ff_core_NodeSystem.ProcessException(problem_), ff_core_NodeSystem.ff_core_Any_HasAnyTag$ff_core_NodeSystem_ProcessException, ff_core_NodeSystem.ff_core_Show_Show$ff_core_NodeSystem_ProcessException)
|
|
147
147
|
} catch(error_) {
|
|
148
148
|
return error_
|
|
149
149
|
}
|
|
@@ -523,3 +523,20 @@ async anyTag_$($task) {
|
|
|
523
523
|
return ff_core_Any.internalAnyTag_((("ff:core/NodeSystem.ProcessException" + "[") + "]"))
|
|
524
524
|
}
|
|
525
525
|
};
|
|
526
|
+
|
|
527
|
+
export const ff_core_Show_Show$ff_core_NodeSystem_ProcessException = {
|
|
528
|
+
show_(value_) {
|
|
529
|
+
const value_a = value_;
|
|
530
|
+
{
|
|
531
|
+
const z_ = value_a;
|
|
532
|
+
return ((("ProcessException" + "(") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.problem_)) + ")")
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
async show_$(value_, $task) {
|
|
536
|
+
const value_a = value_;
|
|
537
|
+
{
|
|
538
|
+
const z_ = value_a;
|
|
539
|
+
return ((("ProcessException" + "(") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.problem_)) + ")")
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
};
|
|
@@ -719,7 +719,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
719
719
|
return ff_core_Option.Some(ff_core_Serializable_Serializable$T.deserializeUsing_(serialization_))
|
|
720
720
|
}
|
|
721
721
|
{
|
|
722
|
-
|
|
722
|
+
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)
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
725
|
},
|
|
@@ -758,7 +758,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
758
758
|
return ff_core_Option.Some(ff_core_Serializable_Serializable$T.deserializeUsing_(serialization_))
|
|
759
759
|
}
|
|
760
760
|
{
|
|
761
|
-
|
|
761
|
+
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)
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
}
|
|
@@ -270,7 +270,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
270
270
|
return ff_core_Pair.Pair(ff_core_Serializable_Serializable$A.deserializeUsing_(serialization_), ff_core_Serializable_Serializable$B.deserializeUsing_(serialization_))
|
|
271
271
|
}
|
|
272
272
|
{
|
|
273
|
-
|
|
273
|
+
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)
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
},
|
|
@@ -298,7 +298,7 @@ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_
|
|
|
298
298
|
return ff_core_Pair.Pair(ff_core_Serializable_Serializable$A.deserializeUsing_(serialization_), ff_core_Serializable_Serializable$B.deserializeUsing_(serialization_))
|
|
299
299
|
}
|
|
300
300
|
{
|
|
301
|
-
|
|
301
|
+
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)
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
}
|
|
@@ -147,7 +147,7 @@ const buffer_ = (new DataView(jsBuffer_.buffer, jsBuffer_.byteOffset, jsBuffer_.
|
|
|
147
147
|
return ff_core_Option.Some(buffer_)
|
|
148
148
|
} else {
|
|
149
149
|
if((!ff_core_JsValue.JsValue_isNullOrUndefined(seenError_))) {
|
|
150
|
-
|
|
150
|
+
throw seenError_
|
|
151
151
|
} else {
|
|
152
152
|
if(jsStream_.destroyed) {
|
|
153
153
|
return ff_core_Option.None()
|
|
@@ -266,7 +266,7 @@ const buffer_ = (new DataView(jsBuffer_.buffer, jsBuffer_.byteOffset, jsBuffer_.
|
|
|
266
266
|
return ff_core_Option.Some(buffer_)
|
|
267
267
|
} else {
|
|
268
268
|
if((!ff_core_JsValue.JsValue_isNullOrUndefined(seenError_))) {
|
|
269
|
-
|
|
269
|
+
throw seenError_
|
|
270
270
|
} else {
|
|
271
271
|
if(jsStream_.destroyed) {
|
|
272
272
|
return ff_core_Option.None()
|
|
@@ -121,7 +121,7 @@ const serialization_ = ff_core_Serializable.Serialization(buffer_, 0, 0);
|
|
|
121
121
|
const result_ = ff_core_Serializable_Serializable$T.deserializeUsing_(serialization_);
|
|
122
122
|
const checksum_ = ff_core_Buffer.Buffer_grabInt32(serialization_.buffer_, serialization_.offset_, true);
|
|
123
123
|
if((checksum_ !== serialization_.checksum_)) {
|
|
124
|
-
|
|
124
|
+
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)
|
|
125
125
|
};
|
|
126
126
|
return result_
|
|
127
127
|
}
|
|
@@ -160,7 +160,7 @@ const serialization_ = ff_core_Serializable.Serialization(buffer_, 0, 0);
|
|
|
160
160
|
const result_ = ff_core_Serializable_Serializable$T.deserializeUsing_(serialization_);
|
|
161
161
|
const checksum_ = ff_core_Buffer.Buffer_grabInt32(serialization_.buffer_, serialization_.offset_, true);
|
|
162
162
|
if((checksum_ !== serialization_.checksum_)) {
|
|
163
|
-
|
|
163
|
+
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)
|
|
164
164
|
};
|
|
165
165
|
return result_
|
|
166
166
|
}
|
|
@@ -441,3 +441,20 @@ async anyTag_$($task) {
|
|
|
441
441
|
return ff_core_Any.internalAnyTag_((("ff:core/Serializable.DeserializationChecksumException" + "[") + "]"))
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
|
+
|
|
445
|
+
export const ff_core_Show_Show$ff_core_Serializable_DeserializationChecksumException = {
|
|
446
|
+
show_(value_) {
|
|
447
|
+
const value_a = value_;
|
|
448
|
+
{
|
|
449
|
+
const z_ = value_a;
|
|
450
|
+
return "DeserializationChecksumException"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
async show_$(value_, $task) {
|
|
454
|
+
const value_a = value_;
|
|
455
|
+
{
|
|
456
|
+
const z_ = value_a;
|
|
457
|
+
return "DeserializationChecksumException"
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
};
|
|
@@ -109,7 +109,7 @@ return self_.length
|
|
|
109
109
|
|
|
110
110
|
export function String_grab(self_, index_) {
|
|
111
111
|
if(((index_ < 0) || (index_ >= self_.length))) {
|
|
112
|
-
|
|
112
|
+
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)
|
|
113
113
|
};
|
|
114
114
|
return self_.charCodeAt(index_)
|
|
115
115
|
}
|
|
@@ -210,13 +210,13 @@ return ff_core_Option.Some(result_)
|
|
|
210
210
|
|
|
211
211
|
export function String_grabInt(self_) {
|
|
212
212
|
return ff_core_Option.Option_else(ff_core_String.String_getInt(self_), (() => {
|
|
213
|
-
|
|
213
|
+
return 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)
|
|
214
214
|
}))
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
export function String_grabFloat(self_) {
|
|
218
218
|
return ff_core_Option.Option_else(ff_core_String.String_getFloat(self_), (() => {
|
|
219
|
-
|
|
219
|
+
return 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)
|
|
220
220
|
}))
|
|
221
221
|
}
|
|
222
222
|
|
|
@@ -234,13 +234,13 @@ return ff_core_Option.Some(self_.charCodeAt((self_.length - 1)))
|
|
|
234
234
|
|
|
235
235
|
export function String_grabFirst(self_) {
|
|
236
236
|
return ff_core_Option.Option_else(ff_core_String.String_first(self_), (() => {
|
|
237
|
-
|
|
237
|
+
return 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)
|
|
238
238
|
}))
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
export function String_grabLast(self_) {
|
|
242
242
|
return ff_core_Option.Option_else(ff_core_String.String_last(self_), (() => {
|
|
243
|
-
|
|
243
|
+
return 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)
|
|
244
244
|
}))
|
|
245
245
|
}
|
|
246
246
|
|
|
@@ -371,7 +371,7 @@ return self_.length
|
|
|
371
371
|
|
|
372
372
|
export async function String_grab$(self_, index_, $task) {
|
|
373
373
|
if(((index_ < 0) || (index_ >= self_.length))) {
|
|
374
|
-
|
|
374
|
+
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)
|
|
375
375
|
};
|
|
376
376
|
return self_.charCodeAt(index_)
|
|
377
377
|
}
|
|
@@ -472,13 +472,13 @@ return ff_core_Option.Some(result_)
|
|
|
472
472
|
|
|
473
473
|
export async function String_grabInt$(self_, $task) {
|
|
474
474
|
return ff_core_Option.Option_else(ff_core_String.String_getInt(self_), (() => {
|
|
475
|
-
|
|
475
|
+
return 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)
|
|
476
476
|
}))
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
export async function String_grabFloat$(self_, $task) {
|
|
480
480
|
return ff_core_Option.Option_else(ff_core_String.String_getFloat(self_), (() => {
|
|
481
|
-
|
|
481
|
+
return 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)
|
|
482
482
|
}))
|
|
483
483
|
}
|
|
484
484
|
|
|
@@ -496,13 +496,13 @@ return ff_core_Option.Some(self_.charCodeAt((self_.length - 1)))
|
|
|
496
496
|
|
|
497
497
|
export async function String_grabFirst$(self_, $task) {
|
|
498
498
|
return ff_core_Option.Option_else(ff_core_String.String_first(self_), (() => {
|
|
499
|
-
|
|
499
|
+
return 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)
|
|
500
500
|
}))
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
export async function String_grabLast$(self_, $task) {
|
|
504
504
|
return ff_core_Option.Option_else(ff_core_String.String_last(self_), (() => {
|
|
505
|
-
|
|
505
|
+
return 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)
|
|
506
506
|
}))
|
|
507
507
|
}
|
|
508
508
|
|
|
@@ -117,7 +117,7 @@ return ff_core_Option.Some(result_)
|
|
|
117
117
|
export function StringMap_grab(self_, key_) {
|
|
118
118
|
const result_ = self_.get(key_);
|
|
119
119
|
if((ff_core_JsValue.JsValue_isUndefined(result_) && (!ff_core_StringMap.StringMap_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 StringMap_grab$(self_, key_, $task) {
|
|
226
226
|
const result_ = self_.get(key_);
|
|
227
227
|
if((ff_core_JsValue.JsValue_isUndefined(result_) && (!ff_core_StringMap.StringMap_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,11 +105,11 @@ return {Failure: true, error_};
|
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
export function internalThrowGrabException_() {
|
|
108
|
-
|
|
108
|
+
return 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
|
|
|
111
111
|
export async function internalThrowGrabException_$($task) {
|
|
112
|
-
|
|
112
|
+
return 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)
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
export function Try_map(self_, body_) {
|
package/package.json
CHANGED
|
@@ -102,9 +102,9 @@ export function activate(context: vscode.ExtensionContext) {
|
|
|
102
102
|
provideFileDecoration(uri: vscode.Uri): vscode.FileDecoration | undefined {
|
|
103
103
|
if(fs.existsSync(path.join(uri.fsPath, '.firefly/package.ff'))) {
|
|
104
104
|
const config = vscode.workspace.getConfiguration('firefly');
|
|
105
|
-
const decorationColor = config.get<string>('packageFolderColor', 'charts.blue');
|
|
105
|
+
const decorationColor = config.get<string>('packageFolderColor', 'charts.blue');
|
|
106
106
|
return {
|
|
107
|
-
tooltip: '
|
|
107
|
+
tooltip: 'Firefly package folder',
|
|
108
108
|
color: new vscode.ThemeColor(decorationColor),
|
|
109
109
|
};
|
|
110
110
|
}
|