firefly-compiler 0.4.4 → 0.4.6

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.
Files changed (98) hide show
  1. package/.hintrc +5 -0
  2. package/README.md +42 -61
  3. package/compiler/Compiler.ff +6 -2
  4. package/compiler/Deriver.ff +10 -0
  5. package/compiler/Environment.ff +2 -1
  6. package/compiler/JsEmitter.ff +29 -17
  7. package/compiler/Resolver.ff +1 -1
  8. package/core/.firefly/package.ff +1 -2
  9. package/core/Box.ff +7 -0
  10. package/core/BuildSystem.ff +5 -4
  11. package/core/Core.ff +4 -0
  12. package/core/HttpClient.ff +1 -1
  13. package/core/JsValue.ff +22 -1
  14. package/core/Lock.ff +4 -4
  15. package/core/NodeSystem.ff +12 -3
  16. package/core/Path.ff +1 -1
  17. package/core/SourceLocation.ff +41 -0
  18. package/core/Stack.ff +6 -6
  19. package/core/StringMap.ff +3 -3
  20. package/lsp/LanguageServer.ff +32 -7
  21. package/lsp/stderr.txt +1 -0
  22. package/lsp/stdin.txt +11 -0
  23. package/lsp/stdout.txt +41 -0
  24. package/lux/.firefly/package.ff +2 -0
  25. package/lux/Lux.ff +473 -0
  26. package/lux/LuxEvent.ff +116 -0
  27. package/lux/Main.ff +126 -0
  28. package/lux/Main2.ff +144 -0
  29. package/meetup/AutoCompletion.ff +6 -0
  30. package/output/js/ff/compiler/Builder.mjs +444 -440
  31. package/output/js/ff/compiler/Compiler.mjs +416 -410
  32. package/output/js/ff/compiler/Dependencies.mjs +389 -385
  33. package/output/js/ff/compiler/Deriver.mjs +1170 -1166
  34. package/output/js/ff/compiler/Dictionaries.mjs +1309 -1305
  35. package/output/js/ff/compiler/Environment.mjs +1015 -1005
  36. package/output/js/ff/compiler/Inference.mjs +4268 -4264
  37. package/output/js/ff/compiler/JsEmitter.mjs +5391 -5353
  38. package/output/js/ff/compiler/JsImporter.mjs +266 -262
  39. package/output/js/ff/compiler/LspHook.mjs +793 -789
  40. package/output/js/ff/compiler/Main.mjs +1699 -1695
  41. package/output/js/ff/compiler/Parser.mjs +4008 -4004
  42. package/output/js/ff/compiler/Patterns.mjs +927 -923
  43. package/output/js/ff/compiler/Resolver.mjs +2307 -2303
  44. package/output/js/ff/compiler/Substitution.mjs +1150 -1146
  45. package/output/js/ff/compiler/Syntax.mjs +12434 -12430
  46. package/output/js/ff/compiler/Token.mjs +3096 -3092
  47. package/output/js/ff/compiler/Tokenizer.mjs +593 -589
  48. package/output/js/ff/compiler/Unification.mjs +1752 -1748
  49. package/output/js/ff/compiler/Wildcards.mjs +608 -604
  50. package/output/js/ff/compiler/Workspace.mjs +687 -683
  51. package/output/js/ff/core/Any.mjs +143 -139
  52. package/output/js/ff/core/Array.mjs +547 -543
  53. package/output/js/ff/core/AssetSystem.mjs +274 -270
  54. package/output/js/ff/core/Atomic.mjs +154 -150
  55. package/output/js/ff/core/Bool.mjs +152 -141
  56. package/output/js/ff/core/Box.mjs +112 -0
  57. package/output/js/ff/core/BrowserSystem.mjs +126 -122
  58. package/output/js/ff/core/Buffer.mjs +395 -391
  59. package/output/js/ff/core/BuildSystem.mjs +296 -290
  60. package/output/js/ff/core/Channel.mjs +189 -185
  61. package/output/js/ff/core/Char.mjs +149 -145
  62. package/output/js/ff/core/Core.mjs +300 -288
  63. package/output/js/ff/core/Duration.mjs +116 -112
  64. package/output/js/ff/core/Equal.mjs +179 -175
  65. package/output/js/ff/core/Error.mjs +142 -138
  66. package/output/js/ff/core/FileHandle.mjs +150 -146
  67. package/output/js/ff/core/Float.mjs +225 -214
  68. package/output/js/ff/core/HttpClient.mjs +190 -186
  69. package/output/js/ff/core/Instant.mjs +109 -105
  70. package/output/js/ff/core/Int.mjs +265 -254
  71. package/output/js/ff/core/IntMap.mjs +280 -276
  72. package/output/js/ff/core/JsSystem.mjs +238 -234
  73. package/output/js/ff/core/JsValue.mjs +714 -664
  74. package/output/js/ff/core/List.mjs +2334 -2321
  75. package/output/js/ff/core/Lock.mjs +230 -226
  76. package/output/js/ff/core/Log.mjs +163 -159
  77. package/output/js/ff/core/Map.mjs +362 -358
  78. package/output/js/ff/core/NodeSystem.mjs +302 -283
  79. package/output/js/ff/core/Nothing.mjs +104 -100
  80. package/output/js/ff/core/Option.mjs +1015 -1002
  81. package/output/js/ff/core/Ordering.mjs +730 -726
  82. package/output/js/ff/core/Pair.mjs +331 -318
  83. package/output/js/ff/core/Path.mjs +546 -542
  84. package/output/js/ff/core/RbMap.mjs +1940 -1936
  85. package/output/js/ff/core/Serializable.mjs +428 -424
  86. package/output/js/ff/core/Set.mjs +254 -250
  87. package/output/js/ff/core/Show.mjs +205 -201
  88. package/output/js/ff/core/SourceLocation.mjs +229 -0
  89. package/output/js/ff/core/Stack.mjs +541 -537
  90. package/output/js/ff/core/Stream.mjs +1304 -1300
  91. package/output/js/ff/core/String.mjs +365 -354
  92. package/output/js/ff/core/StringMap.mjs +280 -276
  93. package/output/js/ff/core/Task.mjs +320 -316
  94. package/output/js/ff/core/Try.mjs +507 -503
  95. package/output/js/ff/core/Unit.mjs +151 -103
  96. package/package.json +29 -29
  97. package/vscode/package-lock.json +5 -5
  98. package/vscode/package.json +1 -1
@@ -1,138 +1,142 @@
1
-
2
-
3
- import * as ff_core_Any from "../../ff/core/Any.mjs"
4
-
5
- import * as ff_core_Array from "../../ff/core/Array.mjs"
6
-
7
- import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
8
-
9
- import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
10
-
11
- import * as ff_core_Bool from "../../ff/core/Bool.mjs"
12
-
13
- import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
14
-
15
- import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
16
-
17
- import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
18
-
19
- import * as ff_core_Channel from "../../ff/core/Channel.mjs"
20
-
21
- import * as ff_core_Char from "../../ff/core/Char.mjs"
22
-
23
- import * as ff_core_Core from "../../ff/core/Core.mjs"
24
-
25
- import * as ff_core_Duration from "../../ff/core/Duration.mjs"
26
-
27
- import * as ff_core_Equal from "../../ff/core/Equal.mjs"
28
-
29
- import * as ff_core_Error from "../../ff/core/Error.mjs"
30
-
31
- import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
32
-
33
- import * as ff_core_Float from "../../ff/core/Float.mjs"
34
-
35
- import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
36
-
37
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
38
-
39
- import * as ff_core_Int from "../../ff/core/Int.mjs"
40
-
41
- import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
42
-
43
- import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
44
-
45
- import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
46
-
47
- import * as ff_core_List from "../../ff/core/List.mjs"
48
-
49
- import * as ff_core_Lock from "../../ff/core/Lock.mjs"
50
-
51
- import * as ff_core_Log from "../../ff/core/Log.mjs"
52
-
53
- import * as ff_core_Map from "../../ff/core/Map.mjs"
54
-
55
- import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
56
-
57
- import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
58
-
59
- import * as ff_core_Option from "../../ff/core/Option.mjs"
60
-
61
- import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
62
-
63
- import * as ff_core_Pair from "../../ff/core/Pair.mjs"
64
-
65
- import * as ff_core_Path from "../../ff/core/Path.mjs"
66
-
67
- import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
68
-
69
- import * as ff_core_Set from "../../ff/core/Set.mjs"
70
-
71
- import * as ff_core_Show from "../../ff/core/Show.mjs"
72
-
73
- import * as ff_core_Stack from "../../ff/core/Stack.mjs"
74
-
75
- import * as ff_core_Stream from "../../ff/core/Stream.mjs"
76
-
77
- import * as ff_core_String from "../../ff/core/String.mjs"
78
-
79
- import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
80
-
81
- import * as ff_core_Task from "../../ff/core/Task.mjs"
82
-
83
- import * as ff_core_Try from "../../ff/core/Try.mjs"
84
-
85
- import * as ff_core_Unit from "../../ff/core/Unit.mjs"
86
-
87
- // type Error
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- export function Error_rethrow(self_) {
97
- throw self_
98
- }
99
-
100
- export function Error_name(self_) {
101
- return self_.name || ''
102
- }
103
-
104
- export function Error_message(self_) {
105
- return self_.message || ''
106
- }
107
-
108
- export function Error_stack(self_) {
109
- return self_.stack || ''
110
- }
111
-
112
- export function Error_exception(self_) {
113
- return self_.ffException ? ff_core_Option.Some(self_.ffException) : ff_core_Option.None()
114
- }
115
-
116
- export async function Error_rethrow$(self_, $task) {
117
- throw new Error('Function Error_rethrow is missing on this target in async context.');
118
- }
119
-
120
- export async function Error_name$(self_, $task) {
121
- throw new Error('Function Error_name is missing on this target in async context.');
122
- }
123
-
124
- export async function Error_message$(self_, $task) {
125
- throw new Error('Function Error_message is missing on this target in async context.');
126
- }
127
-
128
- export async function Error_stack$(self_, $task) {
129
- throw new Error('Function Error_stack is missing on this target in async context.');
130
- }
131
-
132
- export async function Error_exception$(self_, $task) {
133
- throw new Error('Function Error_exception is missing on this target in async context.');
134
- }
135
-
136
-
137
-
138
-
1
+
2
+
3
+ import * as ff_core_Any from "../../ff/core/Any.mjs"
4
+
5
+ import * as ff_core_Array from "../../ff/core/Array.mjs"
6
+
7
+ import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
8
+
9
+ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
10
+
11
+ import * as ff_core_Bool from "../../ff/core/Bool.mjs"
12
+
13
+ import * as ff_core_Box from "../../ff/core/Box.mjs"
14
+
15
+ import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
16
+
17
+ import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
18
+
19
+ import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
20
+
21
+ import * as ff_core_Channel from "../../ff/core/Channel.mjs"
22
+
23
+ import * as ff_core_Char from "../../ff/core/Char.mjs"
24
+
25
+ import * as ff_core_Core from "../../ff/core/Core.mjs"
26
+
27
+ import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
+
29
+ import * as ff_core_Equal from "../../ff/core/Equal.mjs"
30
+
31
+ import * as ff_core_Error from "../../ff/core/Error.mjs"
32
+
33
+ import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
34
+
35
+ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
+
37
+ import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
+
39
+ import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
+
41
+ import * as ff_core_Int from "../../ff/core/Int.mjs"
42
+
43
+ import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
44
+
45
+ import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
46
+
47
+ import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
48
+
49
+ import * as ff_core_List from "../../ff/core/List.mjs"
50
+
51
+ import * as ff_core_Lock from "../../ff/core/Lock.mjs"
52
+
53
+ import * as ff_core_Log from "../../ff/core/Log.mjs"
54
+
55
+ import * as ff_core_Map from "../../ff/core/Map.mjs"
56
+
57
+ import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
58
+
59
+ import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
60
+
61
+ import * as ff_core_Option from "../../ff/core/Option.mjs"
62
+
63
+ import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
64
+
65
+ import * as ff_core_Pair from "../../ff/core/Pair.mjs"
66
+
67
+ import * as ff_core_Path from "../../ff/core/Path.mjs"
68
+
69
+ import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
70
+
71
+ import * as ff_core_Set from "../../ff/core/Set.mjs"
72
+
73
+ import * as ff_core_Show from "../../ff/core/Show.mjs"
74
+
75
+ import * as ff_core_SourceLocation from "../../ff/core/SourceLocation.mjs"
76
+
77
+ import * as ff_core_Stack from "../../ff/core/Stack.mjs"
78
+
79
+ import * as ff_core_Stream from "../../ff/core/Stream.mjs"
80
+
81
+ import * as ff_core_String from "../../ff/core/String.mjs"
82
+
83
+ import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
84
+
85
+ import * as ff_core_Task from "../../ff/core/Task.mjs"
86
+
87
+ import * as ff_core_Try from "../../ff/core/Try.mjs"
88
+
89
+ import * as ff_core_Unit from "../../ff/core/Unit.mjs"
90
+
91
+ // type Error
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ export function Error_rethrow(self_) {
101
+ throw self_
102
+ }
103
+
104
+ export function Error_name(self_) {
105
+ return self_.name || ''
106
+ }
107
+
108
+ export function Error_message(self_) {
109
+ return self_.message || ''
110
+ }
111
+
112
+ export function Error_stack(self_) {
113
+ return self_.stack || ''
114
+ }
115
+
116
+ export function Error_exception(self_) {
117
+ return self_.ffException ? ff_core_Option.Some(self_.ffException) : ff_core_Option.None()
118
+ }
119
+
120
+ export async function Error_rethrow$(self_, $task) {
121
+ throw new Error('Function Error_rethrow is missing on this target in async context.');
122
+ }
123
+
124
+ export async function Error_name$(self_, $task) {
125
+ throw new Error('Function Error_name is missing on this target in async context.');
126
+ }
127
+
128
+ export async function Error_message$(self_, $task) {
129
+ throw new Error('Function Error_message is missing on this target in async context.');
130
+ }
131
+
132
+ export async function Error_stack$(self_, $task) {
133
+ throw new Error('Function Error_stack is missing on this target in async context.');
134
+ }
135
+
136
+ export async function Error_exception$(self_, $task) {
137
+ throw new Error('Function Error_exception is missing on this target in async context.');
138
+ }
139
+
140
+
141
+
142
+
@@ -1,164 +1,168 @@
1
-
2
-
3
- import * as ff_core_Any from "../../ff/core/Any.mjs"
4
-
5
- import * as ff_core_Array from "../../ff/core/Array.mjs"
6
-
7
- import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
8
-
9
- import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
10
-
11
- import * as ff_core_Bool from "../../ff/core/Bool.mjs"
12
-
13
- import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
14
-
15
- import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
16
-
17
- import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
18
-
19
- import * as ff_core_Channel from "../../ff/core/Channel.mjs"
20
-
21
- import * as ff_core_Char from "../../ff/core/Char.mjs"
22
-
23
- import * as ff_core_Core from "../../ff/core/Core.mjs"
24
-
25
- import * as ff_core_Duration from "../../ff/core/Duration.mjs"
26
-
27
- import * as ff_core_Equal from "../../ff/core/Equal.mjs"
28
-
29
- import * as ff_core_Error from "../../ff/core/Error.mjs"
30
-
31
- import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
32
-
33
- import * as ff_core_Float from "../../ff/core/Float.mjs"
34
-
35
- import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
36
-
37
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
38
-
39
- import * as ff_core_Int from "../../ff/core/Int.mjs"
40
-
41
- import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
42
-
43
- import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
44
-
45
- import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
46
-
47
- import * as ff_core_List from "../../ff/core/List.mjs"
48
-
49
- import * as ff_core_Lock from "../../ff/core/Lock.mjs"
50
-
51
- import * as ff_core_Log from "../../ff/core/Log.mjs"
52
-
53
- import * as ff_core_Map from "../../ff/core/Map.mjs"
54
-
55
- import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
56
-
57
- import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
58
-
59
- import * as ff_core_Option from "../../ff/core/Option.mjs"
60
-
61
- import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
62
-
63
- import * as ff_core_Pair from "../../ff/core/Pair.mjs"
64
-
65
- import * as ff_core_Path from "../../ff/core/Path.mjs"
66
-
67
- import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
68
-
69
- import * as ff_core_Set from "../../ff/core/Set.mjs"
70
-
71
- import * as ff_core_Show from "../../ff/core/Show.mjs"
72
-
73
- import * as ff_core_Stack from "../../ff/core/Stack.mjs"
74
-
75
- import * as ff_core_Stream from "../../ff/core/Stream.mjs"
76
-
77
- import * as ff_core_String from "../../ff/core/String.mjs"
78
-
79
- import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
80
-
81
- import * as ff_core_Task from "../../ff/core/Task.mjs"
82
-
83
- import * as ff_core_Try from "../../ff/core/Try.mjs"
84
-
85
- import * as ff_core_Unit from "../../ff/core/Unit.mjs"
86
-
87
- // type FileHandle
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- export function FileHandle_close(self_) {
97
- throw new Error('Function FileHandle_close is missing on this target in sync context.');
98
- }
99
-
100
- export function FileHandle_read(self_, buffer_, offset_ = 0, length_ = ff_core_Option.None(), position_ = ff_core_Option.None()) {
101
- throw new Error('Function FileHandle_read is missing on this target in sync context.');
102
- }
103
-
104
- export function FileHandle_write(self_, buffer_, offset_ = 0, length_ = ff_core_Option.None(), position_ = ff_core_Option.None()) {
105
- throw new Error('Function FileHandle_write is missing on this target in sync context.');
106
- }
107
-
108
- export function FileHandle_writeText(self_, text_, position_ = ff_core_Option.None(), encoding_ = "utf8") {
109
- throw new Error('Function FileHandle_writeText is missing on this target in sync context.');
110
- }
111
-
112
- export function FileHandle_truncate(self_, length_ = 0) {
113
- throw new Error('Function FileHandle_truncate is missing on this target in sync context.');
114
- }
115
-
116
- export function FileHandle_sync(self_, dataOnly_ = false) {
117
- throw new Error('Function FileHandle_sync is missing on this target in sync context.');
118
- }
119
-
120
- export async function FileHandle_close$(self_, $task) {
1
+
2
+
3
+ import * as ff_core_Any from "../../ff/core/Any.mjs"
4
+
5
+ import * as ff_core_Array from "../../ff/core/Array.mjs"
6
+
7
+ import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
8
+
9
+ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
10
+
11
+ import * as ff_core_Bool from "../../ff/core/Bool.mjs"
12
+
13
+ import * as ff_core_Box from "../../ff/core/Box.mjs"
14
+
15
+ import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
16
+
17
+ import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
18
+
19
+ import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
20
+
21
+ import * as ff_core_Channel from "../../ff/core/Channel.mjs"
22
+
23
+ import * as ff_core_Char from "../../ff/core/Char.mjs"
24
+
25
+ import * as ff_core_Core from "../../ff/core/Core.mjs"
26
+
27
+ import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
+
29
+ import * as ff_core_Equal from "../../ff/core/Equal.mjs"
30
+
31
+ import * as ff_core_Error from "../../ff/core/Error.mjs"
32
+
33
+ import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
34
+
35
+ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
+
37
+ import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
+
39
+ import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
+
41
+ import * as ff_core_Int from "../../ff/core/Int.mjs"
42
+
43
+ import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
44
+
45
+ import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
46
+
47
+ import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
48
+
49
+ import * as ff_core_List from "../../ff/core/List.mjs"
50
+
51
+ import * as ff_core_Lock from "../../ff/core/Lock.mjs"
52
+
53
+ import * as ff_core_Log from "../../ff/core/Log.mjs"
54
+
55
+ import * as ff_core_Map from "../../ff/core/Map.mjs"
56
+
57
+ import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
58
+
59
+ import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
60
+
61
+ import * as ff_core_Option from "../../ff/core/Option.mjs"
62
+
63
+ import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
64
+
65
+ import * as ff_core_Pair from "../../ff/core/Pair.mjs"
66
+
67
+ import * as ff_core_Path from "../../ff/core/Path.mjs"
68
+
69
+ import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
70
+
71
+ import * as ff_core_Set from "../../ff/core/Set.mjs"
72
+
73
+ import * as ff_core_Show from "../../ff/core/Show.mjs"
74
+
75
+ import * as ff_core_SourceLocation from "../../ff/core/SourceLocation.mjs"
76
+
77
+ import * as ff_core_Stack from "../../ff/core/Stack.mjs"
78
+
79
+ import * as ff_core_Stream from "../../ff/core/Stream.mjs"
80
+
81
+ import * as ff_core_String from "../../ff/core/String.mjs"
82
+
83
+ import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
84
+
85
+ import * as ff_core_Task from "../../ff/core/Task.mjs"
86
+
87
+ import * as ff_core_Try from "../../ff/core/Try.mjs"
88
+
89
+ import * as ff_core_Unit from "../../ff/core/Unit.mjs"
90
+
91
+ // type FileHandle
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ export function FileHandle_close(self_) {
101
+ throw new Error('Function FileHandle_close is missing on this target in sync context.');
102
+ }
103
+
104
+ export function FileHandle_read(self_, buffer_, offset_ = 0, length_ = ff_core_Option.None(), position_ = ff_core_Option.None()) {
105
+ throw new Error('Function FileHandle_read is missing on this target in sync context.');
106
+ }
107
+
108
+ export function FileHandle_write(self_, buffer_, offset_ = 0, length_ = ff_core_Option.None(), position_ = ff_core_Option.None()) {
109
+ throw new Error('Function FileHandle_write is missing on this target in sync context.');
110
+ }
111
+
112
+ export function FileHandle_writeText(self_, text_, position_ = ff_core_Option.None(), encoding_ = "utf8") {
113
+ throw new Error('Function FileHandle_writeText is missing on this target in sync context.');
114
+ }
115
+
116
+ export function FileHandle_truncate(self_, length_ = 0) {
117
+ throw new Error('Function FileHandle_truncate is missing on this target in sync context.');
118
+ }
119
+
120
+ export function FileHandle_sync(self_, dataOnly_ = false) {
121
+ throw new Error('Function FileHandle_sync is missing on this target in sync context.');
122
+ }
123
+
124
+ export async function FileHandle_close$(self_, $task) {
121
125
 
122
126
  await self_.close()
123
-
124
- }
125
-
126
- export async function FileHandle_read$(self_, buffer_, offset_ = 0, length_ = ff_core_Option.None(), position_ = ff_core_Option.None(), $task) {
127
+
128
+ }
129
+
130
+ export async function FileHandle_read$(self_, buffer_, offset_ = 0, length_ = ff_core_Option.None(), position_ = ff_core_Option.None(), $task) {
127
131
 
128
132
  ff_core_Task.Task_throwIfAborted($task)
129
133
  await self_.read(buffer_, {offset: offset_, length: length.value_, position: position.value_})
130
-
131
- }
132
-
133
- export async function FileHandle_write$(self_, buffer_, offset_ = 0, length_ = ff_core_Option.None(), position_ = ff_core_Option.None(), $task) {
134
+
135
+ }
136
+
137
+ export async function FileHandle_write$(self_, buffer_, offset_ = 0, length_ = ff_core_Option.None(), position_ = ff_core_Option.None(), $task) {
134
138
 
135
139
  ff_core_Task.Task_throwIfAborted($task)
136
140
  await self_.write(buffer_, offset_, length.value_, position.value_)
137
-
138
- }
139
-
140
- export async function FileHandle_writeText$(self_, text_, position_ = ff_core_Option.None(), encoding_ = "utf8", $task) {
141
+
142
+ }
143
+
144
+ export async function FileHandle_writeText$(self_, text_, position_ = ff_core_Option.None(), encoding_ = "utf8", $task) {
141
145
 
142
146
  ff_core_Task.Task_throwIfAborted($task)
143
147
  await self_.write(text, position.value_, encoding_)
144
-
145
- }
146
-
147
- export async function FileHandle_truncate$(self_, length_ = 0, $task) {
148
+
149
+ }
150
+
151
+ export async function FileHandle_truncate$(self_, length_ = 0, $task) {
148
152
 
149
153
  ff_core_Task.Task_throwIfAborted($task)
150
154
  await self_.truncate(length_)
151
-
152
- }
153
-
154
- export async function FileHandle_sync$(self_, dataOnly_ = false, $task) {
155
+
156
+ }
157
+
158
+ export async function FileHandle_sync$(self_, dataOnly_ = false, $task) {
155
159
 
156
160
  ff_core_Task.Task_throwIfAborted($task)
157
161
  if(dataOnly_) await self_.datasync()
158
162
  else await self_.sync()
159
-
160
- }
161
-
162
-
163
-
164
-
163
+
164
+ }
165
+
166
+
167
+
168
+