firefly-compiler 0.4.6 → 0.4.8

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 (90) hide show
  1. package/compiler/Compiler.ff +2 -0
  2. package/compiler/Deriver.ff +7 -0
  3. package/core/Array.ff +17 -4
  4. package/core/AssetSystem.ff +1 -1
  5. package/core/BrowserSystem.ff +27 -0
  6. package/core/List.ff +4 -0
  7. package/core/Lock.ff +2 -2
  8. package/core/Random.ff +148 -0
  9. package/core/SourceLocation.ff +27 -0
  10. package/core/Task.ff +3 -0
  11. package/core/WebSocket.ff +127 -0
  12. package/httpserver/HttpServer.ff +1 -1
  13. package/lux/Css.ff +648 -0
  14. package/lux/CssTest.ff +48 -0
  15. package/lux/Lux.ff +33 -18
  16. package/lux/Main.ff +4 -1
  17. package/output/js/ff/compiler/Builder.mjs +448 -444
  18. package/output/js/ff/compiler/Compiler.mjs +420 -416
  19. package/output/js/ff/compiler/Dependencies.mjs +393 -389
  20. package/output/js/ff/compiler/Deriver.mjs +1178 -1170
  21. package/output/js/ff/compiler/Dictionaries.mjs +1315 -1309
  22. package/output/js/ff/compiler/Environment.mjs +1025 -1015
  23. package/output/js/ff/compiler/Inference.mjs +4272 -4268
  24. package/output/js/ff/compiler/JsEmitter.mjs +5405 -5391
  25. package/output/js/ff/compiler/JsImporter.mjs +270 -266
  26. package/output/js/ff/compiler/LspHook.mjs +799 -793
  27. package/output/js/ff/compiler/Main.mjs +1691 -1675
  28. package/output/js/ff/compiler/Parser.mjs +4016 -4008
  29. package/output/js/ff/compiler/Patterns.mjs +935 -927
  30. package/output/js/ff/compiler/Resolver.mjs +2311 -2307
  31. package/output/js/ff/compiler/Substitution.mjs +1154 -1150
  32. package/output/js/ff/compiler/Syntax.mjs +12566 -12434
  33. package/output/js/ff/compiler/Token.mjs +3152 -3096
  34. package/output/js/ff/compiler/Tokenizer.mjs +597 -593
  35. package/output/js/ff/compiler/Unification.mjs +1762 -1752
  36. package/output/js/ff/compiler/Wildcards.mjs +612 -608
  37. package/output/js/ff/compiler/Workspace.mjs +695 -687
  38. package/output/js/ff/core/Any.mjs +147 -143
  39. package/output/js/ff/core/Array.mjs +573 -547
  40. package/output/js/ff/core/AssetSystem.mjs +278 -274
  41. package/output/js/ff/core/Atomic.mjs +158 -154
  42. package/output/js/ff/core/Bool.mjs +156 -152
  43. package/output/js/ff/core/Box.mjs +116 -112
  44. package/output/js/ff/core/BrowserSystem.mjs +181 -126
  45. package/output/js/ff/core/Buffer.mjs +399 -395
  46. package/output/js/ff/core/BuildSystem.mjs +300 -296
  47. package/output/js/ff/core/Channel.mjs +193 -189
  48. package/output/js/ff/core/Char.mjs +153 -149
  49. package/output/js/ff/core/Core.mjs +304 -300
  50. package/output/js/ff/core/Duration.mjs +120 -116
  51. package/output/js/ff/core/Equal.mjs +183 -179
  52. package/output/js/ff/core/Error.mjs +146 -142
  53. package/output/js/ff/core/FileHandle.mjs +154 -150
  54. package/output/js/ff/core/Float.mjs +229 -225
  55. package/output/js/ff/core/HttpClient.mjs +195 -191
  56. package/output/js/ff/core/Instant.mjs +113 -109
  57. package/output/js/ff/core/Int.mjs +269 -265
  58. package/output/js/ff/core/IntMap.mjs +284 -280
  59. package/output/js/ff/core/JsSystem.mjs +242 -238
  60. package/output/js/ff/core/JsValue.mjs +712 -708
  61. package/output/js/ff/core/List.mjs +2346 -2334
  62. package/output/js/ff/core/Lock.mjs +235 -231
  63. package/output/js/ff/core/Log.mjs +167 -163
  64. package/output/js/ff/core/Map.mjs +366 -362
  65. package/output/js/ff/core/NodeSystem.mjs +298 -294
  66. package/output/js/ff/core/Nothing.mjs +108 -104
  67. package/output/js/ff/core/Option.mjs +1023 -1015
  68. package/output/js/ff/core/Ordering.mjs +734 -730
  69. package/output/js/ff/core/Pair.mjs +337 -331
  70. package/output/js/ff/core/Path.mjs +549 -545
  71. package/output/js/ff/core/Random.mjs +340 -0
  72. package/output/js/ff/core/RbMap.mjs +1944 -1940
  73. package/output/js/ff/core/Serializable.mjs +432 -428
  74. package/output/js/ff/core/Set.mjs +258 -254
  75. package/output/js/ff/core/Show.mjs +209 -205
  76. package/output/js/ff/core/SourceLocation.mjs +273 -229
  77. package/output/js/ff/core/Stack.mjs +533 -529
  78. package/output/js/ff/core/Stream.mjs +1308 -1304
  79. package/output/js/ff/core/String.mjs +369 -365
  80. package/output/js/ff/core/StringMap.mjs +284 -280
  81. package/output/js/ff/core/Task.mjs +325 -319
  82. package/output/js/ff/core/Try.mjs +511 -507
  83. package/output/js/ff/core/Unit.mjs +155 -151
  84. package/output/js/ff/core/WebSocket.mjs +198 -0
  85. package/package.json +1 -1
  86. package/vscode/package.json +1 -1
  87. package/webserver/.firefly/include/package-lock.json +16 -0
  88. package/webserver/.firefly/include/package.json +5 -0
  89. package/webserver/.firefly/package.ff +2 -0
  90. package/webserver/WebServer.ff +608 -0
@@ -1,793 +1,799 @@
1
-
2
-
3
- import * as ff_compiler_LspHook from "../../ff/compiler/LspHook.mjs"
4
-
5
- import * as ff_compiler_Environment from "../../ff/compiler/Environment.mjs"
6
-
7
- import * as ff_compiler_Syntax from "../../ff/compiler/Syntax.mjs"
8
-
9
- import * as ff_compiler_Unification from "../../ff/compiler/Unification.mjs"
10
-
11
- import * as ff_core_Any from "../../ff/core/Any.mjs"
12
-
13
- import * as ff_core_Array from "../../ff/core/Array.mjs"
14
-
15
- import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
16
-
17
- import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
18
-
19
- import * as ff_core_Bool from "../../ff/core/Bool.mjs"
20
-
21
- import * as ff_core_Box from "../../ff/core/Box.mjs"
22
-
23
- import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
24
-
25
- import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
26
-
27
- import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
28
-
29
- import * as ff_core_Channel from "../../ff/core/Channel.mjs"
30
-
31
- import * as ff_core_Char from "../../ff/core/Char.mjs"
32
-
33
- import * as ff_core_Core from "../../ff/core/Core.mjs"
34
-
35
- import * as ff_core_Duration from "../../ff/core/Duration.mjs"
36
-
37
- import * as ff_core_Equal from "../../ff/core/Equal.mjs"
38
-
39
- import * as ff_core_Error from "../../ff/core/Error.mjs"
40
-
41
- import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
42
-
43
- import * as ff_core_Float from "../../ff/core/Float.mjs"
44
-
45
- import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
46
-
47
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
48
-
49
- import * as ff_core_Int from "../../ff/core/Int.mjs"
50
-
51
- import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
52
-
53
- import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
54
-
55
- import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
56
-
57
- import * as ff_core_List from "../../ff/core/List.mjs"
58
-
59
- import * as ff_core_Lock from "../../ff/core/Lock.mjs"
60
-
61
- import * as ff_core_Log from "../../ff/core/Log.mjs"
62
-
63
- import * as ff_core_Map from "../../ff/core/Map.mjs"
64
-
65
- import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
66
-
67
- import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
68
-
69
- import * as ff_core_Option from "../../ff/core/Option.mjs"
70
-
71
- import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
72
-
73
- import * as ff_core_Pair from "../../ff/core/Pair.mjs"
74
-
75
- import * as ff_core_Path from "../../ff/core/Path.mjs"
76
-
77
- import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
78
-
79
- import * as ff_core_Set from "../../ff/core/Set.mjs"
80
-
81
- import * as ff_core_Show from "../../ff/core/Show.mjs"
82
-
83
- import * as ff_core_SourceLocation from "../../ff/core/SourceLocation.mjs"
84
-
85
- import * as ff_core_Stack from "../../ff/core/Stack.mjs"
86
-
87
- import * as ff_core_Stream from "../../ff/core/Stream.mjs"
88
-
89
- import * as ff_core_String from "../../ff/core/String.mjs"
90
-
91
- import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
92
-
93
- import * as ff_core_Task from "../../ff/core/Task.mjs"
94
-
95
- import * as ff_core_Try from "../../ff/core/Try.mjs"
96
-
97
- import * as ff_core_Unit from "../../ff/core/Unit.mjs"
98
-
99
- // type LspHook
100
- export function LspHook(at_, definedAt_, insertIdentifier_, trackSymbols_, stackOfResults_) {
101
- return {at_, definedAt_, insertIdentifier_, trackSymbols_, stackOfResults_};
102
- }
103
-
104
- // type SymbolHook
105
- export function SymbolHook(qualifiedName_, usageAt_, definedAt_) {
106
- return {qualifiedName_, usageAt_, definedAt_};
107
- }
108
-
109
- // type Box
110
- export function Box(value_) {
111
- return {value_};
112
- }
113
-
114
- // type ResultHook
115
- const ParseSymbolBegin$ = {ParseSymbolBegin: true};
116
- export function ParseSymbolBegin() {
117
- return ParseSymbolBegin$;
118
- }
119
- export function ParseSymbolEnd(name_, kind_, selectionStart_, selectionEnd_, start_, end_) {
120
- return {ParseSymbolEnd: true, name_, kind_, selectionStart_, selectionEnd_, start_, end_};
121
- }
122
- export function ParseArgumentHook(callAt_, argumentIndex_, parameterName_) {
123
- return {ParseArgumentHook: true, callAt_, argumentIndex_, parameterName_};
124
- }
125
- export function ResolveSymbolHook(symbol_, annotation_) {
126
- return {ResolveSymbolHook: true, symbol_, annotation_};
127
- }
128
- export function ResolveTypeHook(types_, typeGenerics_, symbol_, explicitType_) {
129
- return {ResolveTypeHook: true, types_, typeGenerics_, symbol_, explicitType_};
130
- }
131
- export function ResolveConstraintHook(symbol_, constrant_) {
132
- return {ResolveConstraintHook: true, symbol_, constrant_};
133
- }
134
- export function ResolveSignatureHook(signature_, isInstanceMethod_) {
135
- return {ResolveSignatureHook: true, signature_, isInstanceMethod_};
136
- }
137
- export function ResolveVariantFieldHook(symbol_, type_, commonField_) {
138
- return {ResolveVariantFieldHook: true, symbol_, type_, commonField_};
139
- }
140
- export function InferTermHook(unification_, environment_, expected_, term_, recordType_, missing_) {
141
- return {InferTermHook: true, unification_, environment_, expected_, term_, recordType_, missing_};
142
- }
143
- export function InferLambdaStartHook(unification_, environment_, lambdaType_) {
144
- return {InferLambdaStartHook: true, unification_, environment_, lambdaType_};
145
- }
146
- export function InferSequentialStartHook(unification_, term_, missing_) {
147
- return {InferSequentialStartHook: true, unification_, term_, missing_};
148
- }
149
- export function InferFunctionDefinitionHook(unification_, environment_, definition_, missing_) {
150
- return {InferFunctionDefinitionHook: true, unification_, environment_, definition_, missing_};
151
- }
152
- export function InferPatternHook(unification_, environment_, expected_, pattern_) {
153
- return {InferPatternHook: true, unification_, environment_, expected_, pattern_};
154
- }
155
- export function InferParameterHook(unification_, environment_, parameter_, missing_) {
156
- return {InferParameterHook: true, unification_, environment_, parameter_, missing_};
157
- }
158
- export function InferArgumentHook(unification_, environment_, isCopy_, callAt_, callName_, parameters_, arguments_, argumentIndex_) {
159
- return {InferArgumentHook: true, unification_, environment_, isCopy_, callAt_, callName_, parameters_, arguments_, argumentIndex_};
160
- }
161
- export function InferLookupHook(unification_, environment_, expected_, selfVariable_, symbol_, instantiated_) {
162
- return {InferLookupHook: true, unification_, environment_, expected_, selfVariable_, symbol_, instantiated_};
163
- }
164
- export function InferRecordFieldHook(unification_, environment_, expected_, recordType_, fieldName_) {
165
- return {InferRecordFieldHook: true, unification_, environment_, expected_, recordType_, fieldName_};
166
- }
167
-
168
-
169
-
170
- export function disabled_() {
171
- return ff_compiler_LspHook.make_(ff_core_Option.None(), ff_core_Option.None(), false, false)
172
- }
173
-
174
- export function make_(at_, definedAt_, insertIdentifier_, trackSymbols_) {
175
- return ff_compiler_LspHook.LspHook(ff_core_Option.Option_else(at_, (() => {
176
- return ff_compiler_Syntax.Location("^lsp", (-7), (-7))
177
- })), ff_core_Option.Option_else(definedAt_, (() => {
178
- return ff_compiler_Syntax.Location("^lsp", (-7), (-7))
179
- })), insertIdentifier_, trackSymbols_, ff_core_List.List_toStack(ff_core_List.Empty()))
180
- }
181
-
182
- export function strictlyBetween_(afterAt_, beforeAt_, at_, extraColumns_) {
183
- return (((at_.file_ === afterAt_.file_) && (((at_.line_ === afterAt_.line_) && (at_.column_ > afterAt_.column_)) || (at_.line_ > afterAt_.line_))) && (((at_.line_ === beforeAt_.line_) && (at_.column_ < (beforeAt_.column_ + extraColumns_))) || (at_.line_ < beforeAt_.line_)))
184
- }
185
-
186
- export function showHook_(hook_) {
187
- {
188
- const hook_a = hook_;
189
- {
190
- if(hook_a.InferArgumentHook) {
191
- const unification_ = hook_a.unification_;
192
- const environment_ = hook_a.environment_;
193
- const isCopy_ = hook_a.isCopy_;
194
- const callAt_ = hook_a.callAt_;
195
- const callName_ = hook_a.callName_;
196
- const parameters_ = hook_a.parameters_;
197
- const arguments_ = hook_a.arguments_;
198
- const argumentIndex_ = hook_a.argumentIndex_;
199
- return "InferArgumentHook(...)"
200
- return
201
- }
202
- }
203
- {
204
- if(hook_a.InferFunctionDefinitionHook) {
205
- const unification_ = hook_a.unification_;
206
- const environment_ = hook_a.environment_;
207
- const definition_ = hook_a.definition_;
208
- const missing_ = hook_a.missing_;
209
- return "InferFunctionDefinitionHook(...)"
210
- return
211
- }
212
- }
213
- {
214
- if(hook_a.InferLambdaStartHook) {
215
- const unification_ = hook_a.unification_;
216
- const environment_ = hook_a.environment_;
217
- const lambdaType_ = hook_a.lambdaType_;
218
- return "InferLambdaStartHook(...)"
219
- return
220
- }
221
- }
222
- {
223
- if(hook_a.InferLookupHook) {
224
- const unification_ = hook_a.unification_;
225
- const environment_ = hook_a.environment_;
226
- const expected_ = hook_a.expected_;
227
- const selfVariable_ = hook_a.selfVariable_;
228
- const symbol_ = hook_a.symbol_;
229
- const instantiated_ = hook_a.instantiated_;
230
- return "InferLookupHook(...)"
231
- return
232
- }
233
- }
234
- {
235
- if(hook_a.InferParameterHook) {
236
- const unification_ = hook_a.unification_;
237
- const environment_ = hook_a.environment_;
238
- const parameter_ = hook_a.parameter_;
239
- const missing_ = hook_a.missing_;
240
- return "InferParameterHook(...)"
241
- return
242
- }
243
- }
244
- {
245
- if(hook_a.InferPatternHook) {
246
- const unification_ = hook_a.unification_;
247
- const environment_ = hook_a.environment_;
248
- const expected_ = hook_a.expected_;
249
- const pattern_ = hook_a.pattern_;
250
- return "InferPatternHook(...)"
251
- return
252
- }
253
- }
254
- {
255
- if(hook_a.InferRecordFieldHook) {
256
- const unification_ = hook_a.unification_;
257
- const environment_ = hook_a.environment_;
258
- const expected_ = hook_a.expected_;
259
- const recordType_ = hook_a.recordType_;
260
- const fieldName_ = hook_a.fieldName_;
261
- return "InferRecordFieldHook(...)"
262
- return
263
- }
264
- }
265
- {
266
- if(hook_a.InferSequentialStartHook) {
267
- const unification_ = hook_a.unification_;
268
- const term_ = hook_a.term_;
269
- const missing_ = hook_a.missing_;
270
- return "InferSequentialStartHook(...)"
271
- return
272
- }
273
- }
274
- {
275
- if(hook_a.InferTermHook) {
276
- const unification_ = hook_a.unification_;
277
- const environment_ = hook_a.environment_;
278
- const expected_ = hook_a.expected_;
279
- const term_ = hook_a.term_;
280
- const recordType_ = hook_a.recordType_;
281
- const missing_ = hook_a.missing_;
282
- return "InferTermHook(...)"
283
- return
284
- }
285
- }
286
- {
287
- if(hook_a.ParseArgumentHook) {
288
- const callAt_ = hook_a.callAt_;
289
- const argumentIndex_ = hook_a.argumentIndex_;
290
- const parameterName_ = hook_a.parameterName_;
291
- return "ParseArgumentHook(...)"
292
- return
293
- }
294
- }
295
- {
296
- if(hook_a.ParseSymbolBegin) {
297
- return "ParseSymbolBegin(...)"
298
- return
299
- }
300
- }
301
- {
302
- if(hook_a.ParseSymbolEnd) {
303
- const name_ = hook_a.name_;
304
- const kind_ = hook_a.kind_;
305
- const selectionStart_ = hook_a.selectionStart_;
306
- const selectionEnd_ = hook_a.selectionEnd_;
307
- const start_ = hook_a.start_;
308
- const end_ = hook_a.end_;
309
- return "ParseSymbolEnd(...)"
310
- return
311
- }
312
- }
313
- {
314
- if(hook_a.ResolveConstraintHook) {
315
- const symbol_ = hook_a.symbol_;
316
- const constrant_ = hook_a.constrant_;
317
- return "ResolveConstraintHook(...)"
318
- return
319
- }
320
- }
321
- {
322
- if(hook_a.ResolveSignatureHook) {
323
- const signature_ = hook_a.signature_;
324
- return "ResolveSignatureHook(...)"
325
- return
326
- }
327
- }
328
- {
329
- if(hook_a.ResolveSymbolHook) {
330
- const symbol_ = hook_a.symbol_;
331
- const annotation_ = hook_a.annotation_;
332
- return "ResolveSymbolHook(...)"
333
- return
334
- }
335
- }
336
- {
337
- if(hook_a.ResolveTypeHook) {
338
- const types_ = hook_a.types_;
339
- const typeGenerics_ = hook_a.typeGenerics_;
340
- const symbol_ = hook_a.symbol_;
341
- const explicitType_ = hook_a.explicitType_;
342
- return "ResolveTypeHook(...)"
343
- return
344
- }
345
- }
346
- {
347
- if(hook_a.ResolveVariantFieldHook) {
348
- const symbol_ = hook_a.symbol_;
349
- const type_ = hook_a.type_;
350
- const commonField_ = hook_a.commonField_;
351
- return "ResolveVariantFieldHook(...)"
352
- return
353
- }
354
- }
355
- }
356
- }
357
-
358
- export async function disabled_$($task) {
359
- return ff_compiler_LspHook.make_(ff_core_Option.None(), ff_core_Option.None(), false, false)
360
- }
361
-
362
- export async function make_$(at_, definedAt_, insertIdentifier_, trackSymbols_, $task) {
363
- return ff_compiler_LspHook.LspHook(ff_core_Option.Option_else(at_, (() => {
364
- return ff_compiler_Syntax.Location("^lsp", (-7), (-7))
365
- })), ff_core_Option.Option_else(definedAt_, (() => {
366
- return ff_compiler_Syntax.Location("^lsp", (-7), (-7))
367
- })), insertIdentifier_, trackSymbols_, ff_core_List.List_toStack(ff_core_List.Empty()))
368
- }
369
-
370
- export async function strictlyBetween_$(afterAt_, beforeAt_, at_, extraColumns_, $task) {
371
- return (((at_.file_ === afterAt_.file_) && (((at_.line_ === afterAt_.line_) && (at_.column_ > afterAt_.column_)) || (at_.line_ > afterAt_.line_))) && (((at_.line_ === beforeAt_.line_) && (at_.column_ < (beforeAt_.column_ + extraColumns_))) || (at_.line_ < beforeAt_.line_)))
372
- }
373
-
374
- export async function showHook_$(hook_, $task) {
375
- {
376
- const hook_a = hook_;
377
- {
378
- if(hook_a.InferArgumentHook) {
379
- const unification_ = hook_a.unification_;
380
- const environment_ = hook_a.environment_;
381
- const isCopy_ = hook_a.isCopy_;
382
- const callAt_ = hook_a.callAt_;
383
- const callName_ = hook_a.callName_;
384
- const parameters_ = hook_a.parameters_;
385
- const arguments_ = hook_a.arguments_;
386
- const argumentIndex_ = hook_a.argumentIndex_;
387
- return "InferArgumentHook(...)"
388
- return
389
- }
390
- }
391
- {
392
- if(hook_a.InferFunctionDefinitionHook) {
393
- const unification_ = hook_a.unification_;
394
- const environment_ = hook_a.environment_;
395
- const definition_ = hook_a.definition_;
396
- const missing_ = hook_a.missing_;
397
- return "InferFunctionDefinitionHook(...)"
398
- return
399
- }
400
- }
401
- {
402
- if(hook_a.InferLambdaStartHook) {
403
- const unification_ = hook_a.unification_;
404
- const environment_ = hook_a.environment_;
405
- const lambdaType_ = hook_a.lambdaType_;
406
- return "InferLambdaStartHook(...)"
407
- return
408
- }
409
- }
410
- {
411
- if(hook_a.InferLookupHook) {
412
- const unification_ = hook_a.unification_;
413
- const environment_ = hook_a.environment_;
414
- const expected_ = hook_a.expected_;
415
- const selfVariable_ = hook_a.selfVariable_;
416
- const symbol_ = hook_a.symbol_;
417
- const instantiated_ = hook_a.instantiated_;
418
- return "InferLookupHook(...)"
419
- return
420
- }
421
- }
422
- {
423
- if(hook_a.InferParameterHook) {
424
- const unification_ = hook_a.unification_;
425
- const environment_ = hook_a.environment_;
426
- const parameter_ = hook_a.parameter_;
427
- const missing_ = hook_a.missing_;
428
- return "InferParameterHook(...)"
429
- return
430
- }
431
- }
432
- {
433
- if(hook_a.InferPatternHook) {
434
- const unification_ = hook_a.unification_;
435
- const environment_ = hook_a.environment_;
436
- const expected_ = hook_a.expected_;
437
- const pattern_ = hook_a.pattern_;
438
- return "InferPatternHook(...)"
439
- return
440
- }
441
- }
442
- {
443
- if(hook_a.InferRecordFieldHook) {
444
- const unification_ = hook_a.unification_;
445
- const environment_ = hook_a.environment_;
446
- const expected_ = hook_a.expected_;
447
- const recordType_ = hook_a.recordType_;
448
- const fieldName_ = hook_a.fieldName_;
449
- return "InferRecordFieldHook(...)"
450
- return
451
- }
452
- }
453
- {
454
- if(hook_a.InferSequentialStartHook) {
455
- const unification_ = hook_a.unification_;
456
- const term_ = hook_a.term_;
457
- const missing_ = hook_a.missing_;
458
- return "InferSequentialStartHook(...)"
459
- return
460
- }
461
- }
462
- {
463
- if(hook_a.InferTermHook) {
464
- const unification_ = hook_a.unification_;
465
- const environment_ = hook_a.environment_;
466
- const expected_ = hook_a.expected_;
467
- const term_ = hook_a.term_;
468
- const recordType_ = hook_a.recordType_;
469
- const missing_ = hook_a.missing_;
470
- return "InferTermHook(...)"
471
- return
472
- }
473
- }
474
- {
475
- if(hook_a.ParseArgumentHook) {
476
- const callAt_ = hook_a.callAt_;
477
- const argumentIndex_ = hook_a.argumentIndex_;
478
- const parameterName_ = hook_a.parameterName_;
479
- return "ParseArgumentHook(...)"
480
- return
481
- }
482
- }
483
- {
484
- if(hook_a.ParseSymbolBegin) {
485
- return "ParseSymbolBegin(...)"
486
- return
487
- }
488
- }
489
- {
490
- if(hook_a.ParseSymbolEnd) {
491
- const name_ = hook_a.name_;
492
- const kind_ = hook_a.kind_;
493
- const selectionStart_ = hook_a.selectionStart_;
494
- const selectionEnd_ = hook_a.selectionEnd_;
495
- const start_ = hook_a.start_;
496
- const end_ = hook_a.end_;
497
- return "ParseSymbolEnd(...)"
498
- return
499
- }
500
- }
501
- {
502
- if(hook_a.ResolveConstraintHook) {
503
- const symbol_ = hook_a.symbol_;
504
- const constrant_ = hook_a.constrant_;
505
- return "ResolveConstraintHook(...)"
506
- return
507
- }
508
- }
509
- {
510
- if(hook_a.ResolveSignatureHook) {
511
- const signature_ = hook_a.signature_;
512
- return "ResolveSignatureHook(...)"
513
- return
514
- }
515
- }
516
- {
517
- if(hook_a.ResolveSymbolHook) {
518
- const symbol_ = hook_a.symbol_;
519
- const annotation_ = hook_a.annotation_;
520
- return "ResolveSymbolHook(...)"
521
- return
522
- }
523
- }
524
- {
525
- if(hook_a.ResolveTypeHook) {
526
- const types_ = hook_a.types_;
527
- const typeGenerics_ = hook_a.typeGenerics_;
528
- const symbol_ = hook_a.symbol_;
529
- const explicitType_ = hook_a.explicitType_;
530
- return "ResolveTypeHook(...)"
531
- return
532
- }
533
- }
534
- {
535
- if(hook_a.ResolveVariantFieldHook) {
536
- const symbol_ = hook_a.symbol_;
537
- const type_ = hook_a.type_;
538
- const commonField_ = hook_a.commonField_;
539
- return "ResolveVariantFieldHook(...)"
540
- return
541
- }
542
- }
543
- }
544
- }
545
-
546
- export function LspHook_isEnabled(self_) {
547
- return (((self_.at_.line_ !== (-7)) || (self_.definedAt_.line_ !== (-7))) || self_.trackSymbols_)
548
- }
549
-
550
- export function LspHook_isAt(self_, at_) {
551
- return (((self_.at_.line_ === at_.line_) && (self_.at_.column_ === at_.column_)) && (self_.at_.file_ === at_.file_))
552
- }
553
-
554
- export function LspHook_isDefinedAt(self_, at_) {
555
- return (((self_.definedAt_.line_ === at_.line_) && (self_.definedAt_.column_ === at_.column_)) && (self_.definedAt_.file_ === at_.file_))
556
- }
557
-
558
- export function LspHook_emit(self_, result_) {
559
- ff_core_Stack.Stack_push(self_.stackOfResults_, result_)
560
- }
561
-
562
- export function LspHook_results(self_) {
563
- return ff_core_Stack.Stack_toList(self_.stackOfResults_, 0, 9007199254740991)
564
- }
565
-
566
- export async function LspHook_isEnabled$(self_, $task) {
567
- return (((self_.at_.line_ !== (-7)) || (self_.definedAt_.line_ !== (-7))) || self_.trackSymbols_)
568
- }
569
-
570
- export async function LspHook_isAt$(self_, at_, $task) {
571
- return (((self_.at_.line_ === at_.line_) && (self_.at_.column_ === at_.column_)) && (self_.at_.file_ === at_.file_))
572
- }
573
-
574
- export async function LspHook_isDefinedAt$(self_, at_, $task) {
575
- return (((self_.definedAt_.line_ === at_.line_) && (self_.definedAt_.column_ === at_.column_)) && (self_.definedAt_.file_ === at_.file_))
576
- }
577
-
578
- export async function LspHook_emit$(self_, result_, $task) {
579
- ff_core_Stack.Stack_push(self_.stackOfResults_, result_)
580
- }
581
-
582
- export async function LspHook_results$(self_, $task) {
583
- return ff_core_Stack.Stack_toList(self_.stackOfResults_, 0, 9007199254740991)
584
- }
585
-
586
- export const ff_core_Any_HasAnyTag$ff_compiler_LspHook_SymbolHook = {
587
- anyTag_() {
588
- return ff_core_Any.internalAnyTag_((("ff:compiler/LspHook.SymbolHook" + "[") + "]"))
589
- },
590
- async anyTag_$($task) {
591
- return ff_core_Any.internalAnyTag_((("ff:compiler/LspHook.SymbolHook" + "[") + "]"))
592
- }
593
- };
594
-
595
- export const ff_core_Show_Show$ff_compiler_LspHook_SymbolHook = {
596
- show_(value_) {
597
- {
598
- const value_a = value_;
599
- {
600
- const z_ = value_a;
601
- return ((((((("SymbolHook" + "(") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.qualifiedName_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.usageAt_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.definedAt_)) + ")")
602
- return
603
- }
604
- }
605
- },
606
- async show_$(value_, $task) {
607
- {
608
- const value_a = value_;
609
- {
610
- const z_ = value_a;
611
- return ((((((("SymbolHook" + "(") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.qualifiedName_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.usageAt_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.definedAt_)) + ")")
612
- return
613
- }
614
- }
615
- }
616
- };
617
-
618
- export const ff_core_Equal_Equal$ff_compiler_LspHook_SymbolHook = {
619
- equals_(x_, y_) {
620
- {
621
- const x_a = x_;
622
- const y_a = y_;
623
- {
624
- const _guard1 = (x_ === y_);
625
- if(_guard1) {
626
- return true
627
- return
628
- }
629
- }
630
- {
631
- return ((x_.qualifiedName_ === y_.qualifiedName_) && (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equals_(x_.usageAt_, y_.usageAt_) && ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equals_(x_.definedAt_, y_.definedAt_)))
632
- return
633
- }
634
- }
635
- },
636
- async equals_$(x_, y_, $task) {
637
- {
638
- const x_a = x_;
639
- const y_a = y_;
640
- {
641
- const _guard1 = (x_ === y_);
642
- if(_guard1) {
643
- return true
644
- return
645
- }
646
- }
647
- {
648
- return ((x_.qualifiedName_ === y_.qualifiedName_) && (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equals_(x_.usageAt_, y_.usageAt_) && ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equals_(x_.definedAt_, y_.definedAt_)))
649
- return
650
- }
651
- }
652
- }
653
- };
654
-
655
- export const ff_core_Ordering_Order$ff_compiler_LspHook_SymbolHook = {
656
- compare_(x_, y_) {
657
- {
658
- const x_a = x_;
659
- const y_a = y_;
660
- {
661
- const _guard1 = (x_ === y_);
662
- if(_guard1) {
663
- return ff_core_Ordering.OrderingSame()
664
- return
665
- }
666
- }
667
- {
668
- const qualifiedNameOrdering_ = ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String.compare_(x_.qualifiedName_, y_.qualifiedName_);
669
- if((qualifiedNameOrdering_ !== ff_core_Ordering.OrderingSame())) {
670
- return qualifiedNameOrdering_
671
- } else {
672
- const usageAtOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Location.compare_(x_.usageAt_, y_.usageAt_);
673
- if((usageAtOrdering_ !== ff_core_Ordering.OrderingSame())) {
674
- return usageAtOrdering_
675
- } else {
676
- const definedAtOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Location.compare_(x_.definedAt_, y_.definedAt_);
677
- if((definedAtOrdering_ !== ff_core_Ordering.OrderingSame())) {
678
- return definedAtOrdering_
679
- } else {
680
- return ff_core_Ordering.OrderingSame()
681
- }
682
- }
683
- }
684
- return
685
- }
686
- }
687
- },
688
- async compare_$(x_, y_, $task) {
689
- {
690
- const x_a = x_;
691
- const y_a = y_;
692
- {
693
- const _guard1 = (x_ === y_);
694
- if(_guard1) {
695
- return ff_core_Ordering.OrderingSame()
696
- return
697
- }
698
- }
699
- {
700
- const qualifiedNameOrdering_ = ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String.compare_(x_.qualifiedName_, y_.qualifiedName_);
701
- if((qualifiedNameOrdering_ !== ff_core_Ordering.OrderingSame())) {
702
- return qualifiedNameOrdering_
703
- } else {
704
- const usageAtOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Location.compare_(x_.usageAt_, y_.usageAt_);
705
- if((usageAtOrdering_ !== ff_core_Ordering.OrderingSame())) {
706
- return usageAtOrdering_
707
- } else {
708
- const definedAtOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Location.compare_(x_.definedAt_, y_.definedAt_);
709
- if((definedAtOrdering_ !== ff_core_Ordering.OrderingSame())) {
710
- return definedAtOrdering_
711
- } else {
712
- return ff_core_Ordering.OrderingSame()
713
- }
714
- }
715
- }
716
- return
717
- }
718
- }
719
- }
720
- };
721
-
722
- export const ff_core_Serializable_Serializable$ff_compiler_LspHook_SymbolHook = {
723
- serializeUsing_(serialization_, value_) {
724
- {
725
- const serialization_a = serialization_;
726
- const value_a = value_;
727
- {
728
- const v_ = value_a;
729
- serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 30), 0);
730
- ff_core_Buffer.Buffer_setUint8(serialization_.buffer_, serialization_.offset_, 0);
731
- serialization_.offset_ += 1;
732
- ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.serializeUsing_(serialization_, v_.qualifiedName_);
733
- ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.serializeUsing_(serialization_, v_.usageAt_);
734
- ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.serializeUsing_(serialization_, v_.definedAt_)
735
- return
736
- }
737
- }
738
- },
739
- deserializeUsing_(serialization_) {
740
- const variantIndex_ = ff_core_Buffer.Buffer_grabUint8(serialization_.buffer_, serialization_.offset_);
741
- serialization_.offset_ += 1;
742
- {
743
- const _1 = variantIndex_;
744
- {
745
- if(_1 == 0) {
746
- serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 30), 0);
747
- return ff_compiler_LspHook.SymbolHook(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_))
748
- return
749
- }
750
- }
751
- {
752
- throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException)})
753
- return
754
- }
755
- }
756
- },
757
- async serializeUsing_$(serialization_, value_, $task) {
758
- {
759
- const serialization_a = serialization_;
760
- const value_a = value_;
761
- {
762
- const v_ = value_a;
763
- serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 30), 0);
764
- ff_core_Buffer.Buffer_setUint8(serialization_.buffer_, serialization_.offset_, 0);
765
- serialization_.offset_ += 1;
766
- ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.serializeUsing_(serialization_, v_.qualifiedName_);
767
- ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.serializeUsing_(serialization_, v_.usageAt_);
768
- ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.serializeUsing_(serialization_, v_.definedAt_)
769
- return
770
- }
771
- }
772
- },
773
- async deserializeUsing_$(serialization_, $task) {
774
- const variantIndex_ = ff_core_Buffer.Buffer_grabUint8(serialization_.buffer_, serialization_.offset_);
775
- serialization_.offset_ += 1;
776
- {
777
- const _1 = variantIndex_;
778
- {
779
- if(_1 == 0) {
780
- serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 30), 0);
781
- return ff_compiler_LspHook.SymbolHook(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_))
782
- return
783
- }
784
- }
785
- {
786
- throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException)})
787
- return
788
- }
789
- }
790
- }
791
- };
792
-
793
-
1
+
2
+
3
+ import * as ff_compiler_LspHook from "../../ff/compiler/LspHook.mjs"
4
+
5
+ import * as ff_compiler_Environment from "../../ff/compiler/Environment.mjs"
6
+
7
+ import * as ff_compiler_Syntax from "../../ff/compiler/Syntax.mjs"
8
+
9
+ import * as ff_compiler_Unification from "../../ff/compiler/Unification.mjs"
10
+
11
+ import * as ff_core_Any from "../../ff/core/Any.mjs"
12
+
13
+ import * as ff_core_Array from "../../ff/core/Array.mjs"
14
+
15
+ import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
16
+
17
+ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
18
+
19
+ import * as ff_core_Bool from "../../ff/core/Bool.mjs"
20
+
21
+ import * as ff_core_Box from "../../ff/core/Box.mjs"
22
+
23
+ import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
24
+
25
+ import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
26
+
27
+ import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
28
+
29
+ import * as ff_core_Channel from "../../ff/core/Channel.mjs"
30
+
31
+ import * as ff_core_Char from "../../ff/core/Char.mjs"
32
+
33
+ import * as ff_core_Core from "../../ff/core/Core.mjs"
34
+
35
+ import * as ff_core_Duration from "../../ff/core/Duration.mjs"
36
+
37
+ import * as ff_core_Equal from "../../ff/core/Equal.mjs"
38
+
39
+ import * as ff_core_Error from "../../ff/core/Error.mjs"
40
+
41
+ import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
42
+
43
+ import * as ff_core_Float from "../../ff/core/Float.mjs"
44
+
45
+ import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
46
+
47
+ import * as ff_core_Instant from "../../ff/core/Instant.mjs"
48
+
49
+ import * as ff_core_Int from "../../ff/core/Int.mjs"
50
+
51
+ import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
52
+
53
+ import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
54
+
55
+ import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
56
+
57
+ import * as ff_core_List from "../../ff/core/List.mjs"
58
+
59
+ import * as ff_core_Lock from "../../ff/core/Lock.mjs"
60
+
61
+ import * as ff_core_Log from "../../ff/core/Log.mjs"
62
+
63
+ import * as ff_core_Map from "../../ff/core/Map.mjs"
64
+
65
+ import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
66
+
67
+ import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
68
+
69
+ import * as ff_core_Option from "../../ff/core/Option.mjs"
70
+
71
+ import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
72
+
73
+ import * as ff_core_Pair from "../../ff/core/Pair.mjs"
74
+
75
+ import * as ff_core_Path from "../../ff/core/Path.mjs"
76
+
77
+ import * as ff_core_Random from "../../ff/core/Random.mjs"
78
+
79
+ import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
80
+
81
+ import * as ff_core_Set from "../../ff/core/Set.mjs"
82
+
83
+ import * as ff_core_Show from "../../ff/core/Show.mjs"
84
+
85
+ import * as ff_core_SourceLocation from "../../ff/core/SourceLocation.mjs"
86
+
87
+ import * as ff_core_Stack from "../../ff/core/Stack.mjs"
88
+
89
+ import * as ff_core_Stream from "../../ff/core/Stream.mjs"
90
+
91
+ import * as ff_core_String from "../../ff/core/String.mjs"
92
+
93
+ import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
94
+
95
+ import * as ff_core_Task from "../../ff/core/Task.mjs"
96
+
97
+ import * as ff_core_Try from "../../ff/core/Try.mjs"
98
+
99
+ import * as ff_core_Unit from "../../ff/core/Unit.mjs"
100
+
101
+ import * as ff_core_WebSocket from "../../ff/core/WebSocket.mjs"
102
+
103
+ // type LspHook
104
+ export function LspHook(at_, definedAt_, insertIdentifier_, trackSymbols_, stackOfResults_) {
105
+ return {at_, definedAt_, insertIdentifier_, trackSymbols_, stackOfResults_};
106
+ }
107
+
108
+ // type SymbolHook
109
+ export function SymbolHook(qualifiedName_, usageAt_, definedAt_) {
110
+ return {qualifiedName_, usageAt_, definedAt_};
111
+ }
112
+
113
+ // type Box
114
+ export function Box(value_) {
115
+ return {value_};
116
+ }
117
+
118
+ // type ResultHook
119
+ const ParseSymbolBegin$ = {ParseSymbolBegin: true};
120
+ export function ParseSymbolBegin() {
121
+ return ParseSymbolBegin$;
122
+ }
123
+ export function ParseSymbolEnd(name_, kind_, selectionStart_, selectionEnd_, start_, end_) {
124
+ return {ParseSymbolEnd: true, name_, kind_, selectionStart_, selectionEnd_, start_, end_};
125
+ }
126
+ export function ParseArgumentHook(callAt_, argumentIndex_, parameterName_) {
127
+ return {ParseArgumentHook: true, callAt_, argumentIndex_, parameterName_};
128
+ }
129
+ export function ResolveSymbolHook(symbol_, annotation_) {
130
+ return {ResolveSymbolHook: true, symbol_, annotation_};
131
+ }
132
+ export function ResolveTypeHook(types_, typeGenerics_, symbol_, explicitType_) {
133
+ return {ResolveTypeHook: true, types_, typeGenerics_, symbol_, explicitType_};
134
+ }
135
+ export function ResolveConstraintHook(symbol_, constrant_) {
136
+ return {ResolveConstraintHook: true, symbol_, constrant_};
137
+ }
138
+ export function ResolveSignatureHook(signature_, isInstanceMethod_) {
139
+ return {ResolveSignatureHook: true, signature_, isInstanceMethod_};
140
+ }
141
+ export function ResolveVariantFieldHook(symbol_, type_, commonField_) {
142
+ return {ResolveVariantFieldHook: true, symbol_, type_, commonField_};
143
+ }
144
+ export function InferTermHook(unification_, environment_, expected_, term_, recordType_, missing_) {
145
+ return {InferTermHook: true, unification_, environment_, expected_, term_, recordType_, missing_};
146
+ }
147
+ export function InferLambdaStartHook(unification_, environment_, lambdaType_) {
148
+ return {InferLambdaStartHook: true, unification_, environment_, lambdaType_};
149
+ }
150
+ export function InferSequentialStartHook(unification_, term_, missing_) {
151
+ return {InferSequentialStartHook: true, unification_, term_, missing_};
152
+ }
153
+ export function InferFunctionDefinitionHook(unification_, environment_, definition_, missing_) {
154
+ return {InferFunctionDefinitionHook: true, unification_, environment_, definition_, missing_};
155
+ }
156
+ export function InferPatternHook(unification_, environment_, expected_, pattern_) {
157
+ return {InferPatternHook: true, unification_, environment_, expected_, pattern_};
158
+ }
159
+ export function InferParameterHook(unification_, environment_, parameter_, missing_) {
160
+ return {InferParameterHook: true, unification_, environment_, parameter_, missing_};
161
+ }
162
+ export function InferArgumentHook(unification_, environment_, isCopy_, callAt_, callName_, parameters_, arguments_, argumentIndex_) {
163
+ return {InferArgumentHook: true, unification_, environment_, isCopy_, callAt_, callName_, parameters_, arguments_, argumentIndex_};
164
+ }
165
+ export function InferLookupHook(unification_, environment_, expected_, selfVariable_, symbol_, instantiated_) {
166
+ return {InferLookupHook: true, unification_, environment_, expected_, selfVariable_, symbol_, instantiated_};
167
+ }
168
+ export function InferRecordFieldHook(unification_, environment_, expected_, recordType_, fieldName_) {
169
+ return {InferRecordFieldHook: true, unification_, environment_, expected_, recordType_, fieldName_};
170
+ }
171
+
172
+
173
+
174
+ export function disabled_() {
175
+ return ff_compiler_LspHook.make_(ff_core_Option.None(), ff_core_Option.None(), false, false)
176
+ }
177
+
178
+ export function make_(at_, definedAt_, insertIdentifier_, trackSymbols_) {
179
+ return ff_compiler_LspHook.LspHook(ff_core_Option.Option_else(at_, (() => {
180
+ return ff_compiler_Syntax.Location("^lsp", (-7), (-7))
181
+ })), ff_core_Option.Option_else(definedAt_, (() => {
182
+ return ff_compiler_Syntax.Location("^lsp", (-7), (-7))
183
+ })), insertIdentifier_, trackSymbols_, ff_core_List.List_toStack(ff_core_List.Empty()))
184
+ }
185
+
186
+ export function strictlyBetween_(afterAt_, beforeAt_, at_, extraColumns_) {
187
+ return (((at_.file_ === afterAt_.file_) && (((at_.line_ === afterAt_.line_) && (at_.column_ > afterAt_.column_)) || (at_.line_ > afterAt_.line_))) && (((at_.line_ === beforeAt_.line_) && (at_.column_ < (beforeAt_.column_ + extraColumns_))) || (at_.line_ < beforeAt_.line_)))
188
+ }
189
+
190
+ export function showHook_(hook_) {
191
+ {
192
+ const hook_a = hook_;
193
+ {
194
+ if(hook_a.InferArgumentHook) {
195
+ const unification_ = hook_a.unification_;
196
+ const environment_ = hook_a.environment_;
197
+ const isCopy_ = hook_a.isCopy_;
198
+ const callAt_ = hook_a.callAt_;
199
+ const callName_ = hook_a.callName_;
200
+ const parameters_ = hook_a.parameters_;
201
+ const arguments_ = hook_a.arguments_;
202
+ const argumentIndex_ = hook_a.argumentIndex_;
203
+ return "InferArgumentHook(...)"
204
+ return
205
+ }
206
+ }
207
+ {
208
+ if(hook_a.InferFunctionDefinitionHook) {
209
+ const unification_ = hook_a.unification_;
210
+ const environment_ = hook_a.environment_;
211
+ const definition_ = hook_a.definition_;
212
+ const missing_ = hook_a.missing_;
213
+ return "InferFunctionDefinitionHook(...)"
214
+ return
215
+ }
216
+ }
217
+ {
218
+ if(hook_a.InferLambdaStartHook) {
219
+ const unification_ = hook_a.unification_;
220
+ const environment_ = hook_a.environment_;
221
+ const lambdaType_ = hook_a.lambdaType_;
222
+ return "InferLambdaStartHook(...)"
223
+ return
224
+ }
225
+ }
226
+ {
227
+ if(hook_a.InferLookupHook) {
228
+ const unification_ = hook_a.unification_;
229
+ const environment_ = hook_a.environment_;
230
+ const expected_ = hook_a.expected_;
231
+ const selfVariable_ = hook_a.selfVariable_;
232
+ const symbol_ = hook_a.symbol_;
233
+ const instantiated_ = hook_a.instantiated_;
234
+ return "InferLookupHook(...)"
235
+ return
236
+ }
237
+ }
238
+ {
239
+ if(hook_a.InferParameterHook) {
240
+ const unification_ = hook_a.unification_;
241
+ const environment_ = hook_a.environment_;
242
+ const parameter_ = hook_a.parameter_;
243
+ const missing_ = hook_a.missing_;
244
+ return "InferParameterHook(...)"
245
+ return
246
+ }
247
+ }
248
+ {
249
+ if(hook_a.InferPatternHook) {
250
+ const unification_ = hook_a.unification_;
251
+ const environment_ = hook_a.environment_;
252
+ const expected_ = hook_a.expected_;
253
+ const pattern_ = hook_a.pattern_;
254
+ return "InferPatternHook(...)"
255
+ return
256
+ }
257
+ }
258
+ {
259
+ if(hook_a.InferRecordFieldHook) {
260
+ const unification_ = hook_a.unification_;
261
+ const environment_ = hook_a.environment_;
262
+ const expected_ = hook_a.expected_;
263
+ const recordType_ = hook_a.recordType_;
264
+ const fieldName_ = hook_a.fieldName_;
265
+ return "InferRecordFieldHook(...)"
266
+ return
267
+ }
268
+ }
269
+ {
270
+ if(hook_a.InferSequentialStartHook) {
271
+ const unification_ = hook_a.unification_;
272
+ const term_ = hook_a.term_;
273
+ const missing_ = hook_a.missing_;
274
+ return "InferSequentialStartHook(...)"
275
+ return
276
+ }
277
+ }
278
+ {
279
+ if(hook_a.InferTermHook) {
280
+ const unification_ = hook_a.unification_;
281
+ const environment_ = hook_a.environment_;
282
+ const expected_ = hook_a.expected_;
283
+ const term_ = hook_a.term_;
284
+ const recordType_ = hook_a.recordType_;
285
+ const missing_ = hook_a.missing_;
286
+ return "InferTermHook(...)"
287
+ return
288
+ }
289
+ }
290
+ {
291
+ if(hook_a.ParseArgumentHook) {
292
+ const callAt_ = hook_a.callAt_;
293
+ const argumentIndex_ = hook_a.argumentIndex_;
294
+ const parameterName_ = hook_a.parameterName_;
295
+ return "ParseArgumentHook(...)"
296
+ return
297
+ }
298
+ }
299
+ {
300
+ if(hook_a.ParseSymbolBegin) {
301
+ return "ParseSymbolBegin(...)"
302
+ return
303
+ }
304
+ }
305
+ {
306
+ if(hook_a.ParseSymbolEnd) {
307
+ const name_ = hook_a.name_;
308
+ const kind_ = hook_a.kind_;
309
+ const selectionStart_ = hook_a.selectionStart_;
310
+ const selectionEnd_ = hook_a.selectionEnd_;
311
+ const start_ = hook_a.start_;
312
+ const end_ = hook_a.end_;
313
+ return "ParseSymbolEnd(...)"
314
+ return
315
+ }
316
+ }
317
+ {
318
+ if(hook_a.ResolveConstraintHook) {
319
+ const symbol_ = hook_a.symbol_;
320
+ const constrant_ = hook_a.constrant_;
321
+ return "ResolveConstraintHook(...)"
322
+ return
323
+ }
324
+ }
325
+ {
326
+ if(hook_a.ResolveSignatureHook) {
327
+ const signature_ = hook_a.signature_;
328
+ return "ResolveSignatureHook(...)"
329
+ return
330
+ }
331
+ }
332
+ {
333
+ if(hook_a.ResolveSymbolHook) {
334
+ const symbol_ = hook_a.symbol_;
335
+ const annotation_ = hook_a.annotation_;
336
+ return "ResolveSymbolHook(...)"
337
+ return
338
+ }
339
+ }
340
+ {
341
+ if(hook_a.ResolveTypeHook) {
342
+ const types_ = hook_a.types_;
343
+ const typeGenerics_ = hook_a.typeGenerics_;
344
+ const symbol_ = hook_a.symbol_;
345
+ const explicitType_ = hook_a.explicitType_;
346
+ return "ResolveTypeHook(...)"
347
+ return
348
+ }
349
+ }
350
+ {
351
+ if(hook_a.ResolveVariantFieldHook) {
352
+ const symbol_ = hook_a.symbol_;
353
+ const type_ = hook_a.type_;
354
+ const commonField_ = hook_a.commonField_;
355
+ return "ResolveVariantFieldHook(...)"
356
+ return
357
+ }
358
+ }
359
+ }
360
+ }
361
+
362
+ export async function disabled_$($task) {
363
+ return ff_compiler_LspHook.make_(ff_core_Option.None(), ff_core_Option.None(), false, false)
364
+ }
365
+
366
+ export async function make_$(at_, definedAt_, insertIdentifier_, trackSymbols_, $task) {
367
+ return ff_compiler_LspHook.LspHook(ff_core_Option.Option_else(at_, (() => {
368
+ return ff_compiler_Syntax.Location("^lsp", (-7), (-7))
369
+ })), ff_core_Option.Option_else(definedAt_, (() => {
370
+ return ff_compiler_Syntax.Location("^lsp", (-7), (-7))
371
+ })), insertIdentifier_, trackSymbols_, ff_core_List.List_toStack(ff_core_List.Empty()))
372
+ }
373
+
374
+ export async function strictlyBetween_$(afterAt_, beforeAt_, at_, extraColumns_, $task) {
375
+ return (((at_.file_ === afterAt_.file_) && (((at_.line_ === afterAt_.line_) && (at_.column_ > afterAt_.column_)) || (at_.line_ > afterAt_.line_))) && (((at_.line_ === beforeAt_.line_) && (at_.column_ < (beforeAt_.column_ + extraColumns_))) || (at_.line_ < beforeAt_.line_)))
376
+ }
377
+
378
+ export async function showHook_$(hook_, $task) {
379
+ {
380
+ const hook_a = hook_;
381
+ {
382
+ if(hook_a.InferArgumentHook) {
383
+ const unification_ = hook_a.unification_;
384
+ const environment_ = hook_a.environment_;
385
+ const isCopy_ = hook_a.isCopy_;
386
+ const callAt_ = hook_a.callAt_;
387
+ const callName_ = hook_a.callName_;
388
+ const parameters_ = hook_a.parameters_;
389
+ const arguments_ = hook_a.arguments_;
390
+ const argumentIndex_ = hook_a.argumentIndex_;
391
+ return "InferArgumentHook(...)"
392
+ return
393
+ }
394
+ }
395
+ {
396
+ if(hook_a.InferFunctionDefinitionHook) {
397
+ const unification_ = hook_a.unification_;
398
+ const environment_ = hook_a.environment_;
399
+ const definition_ = hook_a.definition_;
400
+ const missing_ = hook_a.missing_;
401
+ return "InferFunctionDefinitionHook(...)"
402
+ return
403
+ }
404
+ }
405
+ {
406
+ if(hook_a.InferLambdaStartHook) {
407
+ const unification_ = hook_a.unification_;
408
+ const environment_ = hook_a.environment_;
409
+ const lambdaType_ = hook_a.lambdaType_;
410
+ return "InferLambdaStartHook(...)"
411
+ return
412
+ }
413
+ }
414
+ {
415
+ if(hook_a.InferLookupHook) {
416
+ const unification_ = hook_a.unification_;
417
+ const environment_ = hook_a.environment_;
418
+ const expected_ = hook_a.expected_;
419
+ const selfVariable_ = hook_a.selfVariable_;
420
+ const symbol_ = hook_a.symbol_;
421
+ const instantiated_ = hook_a.instantiated_;
422
+ return "InferLookupHook(...)"
423
+ return
424
+ }
425
+ }
426
+ {
427
+ if(hook_a.InferParameterHook) {
428
+ const unification_ = hook_a.unification_;
429
+ const environment_ = hook_a.environment_;
430
+ const parameter_ = hook_a.parameter_;
431
+ const missing_ = hook_a.missing_;
432
+ return "InferParameterHook(...)"
433
+ return
434
+ }
435
+ }
436
+ {
437
+ if(hook_a.InferPatternHook) {
438
+ const unification_ = hook_a.unification_;
439
+ const environment_ = hook_a.environment_;
440
+ const expected_ = hook_a.expected_;
441
+ const pattern_ = hook_a.pattern_;
442
+ return "InferPatternHook(...)"
443
+ return
444
+ }
445
+ }
446
+ {
447
+ if(hook_a.InferRecordFieldHook) {
448
+ const unification_ = hook_a.unification_;
449
+ const environment_ = hook_a.environment_;
450
+ const expected_ = hook_a.expected_;
451
+ const recordType_ = hook_a.recordType_;
452
+ const fieldName_ = hook_a.fieldName_;
453
+ return "InferRecordFieldHook(...)"
454
+ return
455
+ }
456
+ }
457
+ {
458
+ if(hook_a.InferSequentialStartHook) {
459
+ const unification_ = hook_a.unification_;
460
+ const term_ = hook_a.term_;
461
+ const missing_ = hook_a.missing_;
462
+ return "InferSequentialStartHook(...)"
463
+ return
464
+ }
465
+ }
466
+ {
467
+ if(hook_a.InferTermHook) {
468
+ const unification_ = hook_a.unification_;
469
+ const environment_ = hook_a.environment_;
470
+ const expected_ = hook_a.expected_;
471
+ const term_ = hook_a.term_;
472
+ const recordType_ = hook_a.recordType_;
473
+ const missing_ = hook_a.missing_;
474
+ return "InferTermHook(...)"
475
+ return
476
+ }
477
+ }
478
+ {
479
+ if(hook_a.ParseArgumentHook) {
480
+ const callAt_ = hook_a.callAt_;
481
+ const argumentIndex_ = hook_a.argumentIndex_;
482
+ const parameterName_ = hook_a.parameterName_;
483
+ return "ParseArgumentHook(...)"
484
+ return
485
+ }
486
+ }
487
+ {
488
+ if(hook_a.ParseSymbolBegin) {
489
+ return "ParseSymbolBegin(...)"
490
+ return
491
+ }
492
+ }
493
+ {
494
+ if(hook_a.ParseSymbolEnd) {
495
+ const name_ = hook_a.name_;
496
+ const kind_ = hook_a.kind_;
497
+ const selectionStart_ = hook_a.selectionStart_;
498
+ const selectionEnd_ = hook_a.selectionEnd_;
499
+ const start_ = hook_a.start_;
500
+ const end_ = hook_a.end_;
501
+ return "ParseSymbolEnd(...)"
502
+ return
503
+ }
504
+ }
505
+ {
506
+ if(hook_a.ResolveConstraintHook) {
507
+ const symbol_ = hook_a.symbol_;
508
+ const constrant_ = hook_a.constrant_;
509
+ return "ResolveConstraintHook(...)"
510
+ return
511
+ }
512
+ }
513
+ {
514
+ if(hook_a.ResolveSignatureHook) {
515
+ const signature_ = hook_a.signature_;
516
+ return "ResolveSignatureHook(...)"
517
+ return
518
+ }
519
+ }
520
+ {
521
+ if(hook_a.ResolveSymbolHook) {
522
+ const symbol_ = hook_a.symbol_;
523
+ const annotation_ = hook_a.annotation_;
524
+ return "ResolveSymbolHook(...)"
525
+ return
526
+ }
527
+ }
528
+ {
529
+ if(hook_a.ResolveTypeHook) {
530
+ const types_ = hook_a.types_;
531
+ const typeGenerics_ = hook_a.typeGenerics_;
532
+ const symbol_ = hook_a.symbol_;
533
+ const explicitType_ = hook_a.explicitType_;
534
+ return "ResolveTypeHook(...)"
535
+ return
536
+ }
537
+ }
538
+ {
539
+ if(hook_a.ResolveVariantFieldHook) {
540
+ const symbol_ = hook_a.symbol_;
541
+ const type_ = hook_a.type_;
542
+ const commonField_ = hook_a.commonField_;
543
+ return "ResolveVariantFieldHook(...)"
544
+ return
545
+ }
546
+ }
547
+ }
548
+ }
549
+
550
+ export function LspHook_isEnabled(self_) {
551
+ return (((self_.at_.line_ !== (-7)) || (self_.definedAt_.line_ !== (-7))) || self_.trackSymbols_)
552
+ }
553
+
554
+ export function LspHook_isAt(self_, at_) {
555
+ return (((self_.at_.line_ === at_.line_) && (self_.at_.column_ === at_.column_)) && (self_.at_.file_ === at_.file_))
556
+ }
557
+
558
+ export function LspHook_isDefinedAt(self_, at_) {
559
+ return (((self_.definedAt_.line_ === at_.line_) && (self_.definedAt_.column_ === at_.column_)) && (self_.definedAt_.file_ === at_.file_))
560
+ }
561
+
562
+ export function LspHook_emit(self_, result_) {
563
+ ff_core_Stack.Stack_push(self_.stackOfResults_, result_)
564
+ }
565
+
566
+ export function LspHook_results(self_) {
567
+ return ff_core_Stack.Stack_toList(self_.stackOfResults_, 0, 9007199254740991)
568
+ }
569
+
570
+ export async function LspHook_isEnabled$(self_, $task) {
571
+ return (((self_.at_.line_ !== (-7)) || (self_.definedAt_.line_ !== (-7))) || self_.trackSymbols_)
572
+ }
573
+
574
+ export async function LspHook_isAt$(self_, at_, $task) {
575
+ return (((self_.at_.line_ === at_.line_) && (self_.at_.column_ === at_.column_)) && (self_.at_.file_ === at_.file_))
576
+ }
577
+
578
+ export async function LspHook_isDefinedAt$(self_, at_, $task) {
579
+ return (((self_.definedAt_.line_ === at_.line_) && (self_.definedAt_.column_ === at_.column_)) && (self_.definedAt_.file_ === at_.file_))
580
+ }
581
+
582
+ export async function LspHook_emit$(self_, result_, $task) {
583
+ ff_core_Stack.Stack_push(self_.stackOfResults_, result_)
584
+ }
585
+
586
+ export async function LspHook_results$(self_, $task) {
587
+ return ff_core_Stack.Stack_toList(self_.stackOfResults_, 0, 9007199254740991)
588
+ }
589
+
590
+ export const ff_core_Any_HasAnyTag$ff_compiler_LspHook_SymbolHook = {
591
+ anyTag_() {
592
+ return ff_core_Any.internalAnyTag_((("ff:compiler/LspHook.SymbolHook" + "[") + "]"))
593
+ },
594
+ async anyTag_$($task) {
595
+ return ff_core_Any.internalAnyTag_((("ff:compiler/LspHook.SymbolHook" + "[") + "]"))
596
+ }
597
+ };
598
+
599
+ export const ff_core_Show_Show$ff_compiler_LspHook_SymbolHook = {
600
+ show_(value_) {
601
+ {
602
+ const value_a = value_;
603
+ {
604
+ const z_ = value_a;
605
+ return ((((((("SymbolHook" + "(") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.qualifiedName_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.usageAt_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.definedAt_)) + ")")
606
+ return
607
+ }
608
+ }
609
+ },
610
+ async show_$(value_, $task) {
611
+ {
612
+ const value_a = value_;
613
+ {
614
+ const z_ = value_a;
615
+ return ((((((("SymbolHook" + "(") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.qualifiedName_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.usageAt_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.definedAt_)) + ")")
616
+ return
617
+ }
618
+ }
619
+ }
620
+ };
621
+
622
+ export const ff_core_Equal_Equal$ff_compiler_LspHook_SymbolHook = {
623
+ equals_(x_, y_) {
624
+ {
625
+ const x_a = x_;
626
+ const y_a = y_;
627
+ {
628
+ const _guard1 = (x_ === y_);
629
+ if(_guard1) {
630
+ return true
631
+ return
632
+ }
633
+ }
634
+ {
635
+ return ((x_.qualifiedName_ === y_.qualifiedName_) && (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equals_(x_.usageAt_, y_.usageAt_) && ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equals_(x_.definedAt_, y_.definedAt_)))
636
+ return
637
+ }
638
+ }
639
+ },
640
+ async equals_$(x_, y_, $task) {
641
+ {
642
+ const x_a = x_;
643
+ const y_a = y_;
644
+ {
645
+ const _guard1 = (x_ === y_);
646
+ if(_guard1) {
647
+ return true
648
+ return
649
+ }
650
+ }
651
+ {
652
+ return ((x_.qualifiedName_ === y_.qualifiedName_) && (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equals_(x_.usageAt_, y_.usageAt_) && ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equals_(x_.definedAt_, y_.definedAt_)))
653
+ return
654
+ }
655
+ }
656
+ }
657
+ };
658
+
659
+ export const ff_core_Ordering_Order$ff_compiler_LspHook_SymbolHook = {
660
+ compare_(x_, y_) {
661
+ {
662
+ const x_a = x_;
663
+ const y_a = y_;
664
+ {
665
+ const _guard1 = (x_ === y_);
666
+ if(_guard1) {
667
+ return ff_core_Ordering.OrderingSame()
668
+ return
669
+ }
670
+ }
671
+ {
672
+ const qualifiedNameOrdering_ = ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String.compare_(x_.qualifiedName_, y_.qualifiedName_);
673
+ if((qualifiedNameOrdering_ !== ff_core_Ordering.OrderingSame())) {
674
+ return qualifiedNameOrdering_
675
+ } else {
676
+ const usageAtOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Location.compare_(x_.usageAt_, y_.usageAt_);
677
+ if((usageAtOrdering_ !== ff_core_Ordering.OrderingSame())) {
678
+ return usageAtOrdering_
679
+ } else {
680
+ const definedAtOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Location.compare_(x_.definedAt_, y_.definedAt_);
681
+ if((definedAtOrdering_ !== ff_core_Ordering.OrderingSame())) {
682
+ return definedAtOrdering_
683
+ } else {
684
+ return ff_core_Ordering.OrderingSame()
685
+ }
686
+ }
687
+ }
688
+ return
689
+ }
690
+ }
691
+ },
692
+ async compare_$(x_, y_, $task) {
693
+ {
694
+ const x_a = x_;
695
+ const y_a = y_;
696
+ {
697
+ const _guard1 = (x_ === y_);
698
+ if(_guard1) {
699
+ return ff_core_Ordering.OrderingSame()
700
+ return
701
+ }
702
+ }
703
+ {
704
+ const qualifiedNameOrdering_ = ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String.compare_(x_.qualifiedName_, y_.qualifiedName_);
705
+ if((qualifiedNameOrdering_ !== ff_core_Ordering.OrderingSame())) {
706
+ return qualifiedNameOrdering_
707
+ } else {
708
+ const usageAtOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Location.compare_(x_.usageAt_, y_.usageAt_);
709
+ if((usageAtOrdering_ !== ff_core_Ordering.OrderingSame())) {
710
+ return usageAtOrdering_
711
+ } else {
712
+ const definedAtOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Location.compare_(x_.definedAt_, y_.definedAt_);
713
+ if((definedAtOrdering_ !== ff_core_Ordering.OrderingSame())) {
714
+ return definedAtOrdering_
715
+ } else {
716
+ return ff_core_Ordering.OrderingSame()
717
+ }
718
+ }
719
+ }
720
+ return
721
+ }
722
+ }
723
+ }
724
+ };
725
+
726
+ export const ff_core_Serializable_Serializable$ff_compiler_LspHook_SymbolHook = {
727
+ serializeUsing_(serialization_, value_) {
728
+ {
729
+ const serialization_a = serialization_;
730
+ const value_a = value_;
731
+ {
732
+ const v_ = value_a;
733
+ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 30), 0);
734
+ ff_core_Serializable.Serialization_autoResize(serialization_, 1);
735
+ ff_core_Buffer.Buffer_setUint8(serialization_.buffer_, serialization_.offset_, 0);
736
+ serialization_.offset_ += 1;
737
+ ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.serializeUsing_(serialization_, v_.qualifiedName_);
738
+ ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.serializeUsing_(serialization_, v_.usageAt_);
739
+ ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.serializeUsing_(serialization_, v_.definedAt_)
740
+ return
741
+ }
742
+ }
743
+ },
744
+ deserializeUsing_(serialization_) {
745
+ const variantIndex_ = ff_core_Buffer.Buffer_grabUint8(serialization_.buffer_, serialization_.offset_);
746
+ serialization_.offset_ += 1;
747
+ {
748
+ const _1 = variantIndex_;
749
+ {
750
+ if(_1 == 0) {
751
+ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 30), 0);
752
+ return ff_compiler_LspHook.SymbolHook(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_))
753
+ return
754
+ }
755
+ }
756
+ {
757
+ throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException)})
758
+ return
759
+ }
760
+ }
761
+ },
762
+ async serializeUsing_$(serialization_, value_, $task) {
763
+ {
764
+ const serialization_a = serialization_;
765
+ const value_a = value_;
766
+ {
767
+ const v_ = value_a;
768
+ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 30), 0);
769
+ ff_core_Serializable.Serialization_autoResize(serialization_, 1);
770
+ ff_core_Buffer.Buffer_setUint8(serialization_.buffer_, serialization_.offset_, 0);
771
+ serialization_.offset_ += 1;
772
+ ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.serializeUsing_(serialization_, v_.qualifiedName_);
773
+ ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.serializeUsing_(serialization_, v_.usageAt_);
774
+ ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.serializeUsing_(serialization_, v_.definedAt_)
775
+ return
776
+ }
777
+ }
778
+ },
779
+ async deserializeUsing_$(serialization_, $task) {
780
+ const variantIndex_ = ff_core_Buffer.Buffer_grabUint8(serialization_.buffer_, serialization_.offset_);
781
+ serialization_.offset_ += 1;
782
+ {
783
+ const _1 = variantIndex_;
784
+ {
785
+ if(_1 == 0) {
786
+ serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 30), 0);
787
+ return ff_compiler_LspHook.SymbolHook(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_))
788
+ return
789
+ }
790
+ }
791
+ {
792
+ throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException)})
793
+ return
794
+ }
795
+ }
796
+ }
797
+ };
798
+
799
+