@fossil-lang/wasm 0.3.0-alpha.13 → 0.3.0-alpha.15

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/dist/client.d.ts CHANGED
@@ -14,21 +14,6 @@
14
14
  import { FileHandle as RawFileHandle } from '../pkg/fossil_wasm.js';
15
15
  import type { DocumentWorkspace, MissingDocument, ProgramSource, SemanticTokensLegend, TokenKindLegend, TokenRow } from '@fossil-lang/types';
16
16
  import type { CheckRow, CompletionRow, DefinitionRow, HoverRow, InferredDescriptorJson, SourceRefInfo, ProviderInfo } from './index.js';
17
- /**
18
- * Install the LSP-over-postMessage dispatcher on the current Worker scope.
19
- *
20
- * `fossil-wasm` IS the LSP server-side in the browser: `fossil-lsp` is
21
- * native-only (it speaks stdio over crossbeam and does not compile to
22
- * `wasm32`), so the Worker gets an equivalent 16-route dispatch loop over the
23
- * same `fossil-ide` free functions. The Rust function (re-exported from
24
- * `crates/fossil-wasm/src/lsp_worker.rs`) installs `self.onmessage` on the
25
- * Worker scope and owns LSP JSON-RPC dispatch from that point forward.
26
- *
27
- * MUST be called inside a Web Worker scope, AFTER {@link initFossilWasm} has
28
- * resolved. Calling it on the main thread is a no-op (the dispatcher needs
29
- * `DedicatedWorkerGlobalScope.onmessage`).
30
- */
31
- export declare function start_lsp_worker(): void;
32
17
  /**
33
18
  * Opaque file-handle returned by {@link FossilWorkspace.openFile}. Pass it
34
19
  * back into the matching `updateFile` / `closeFile` / `diagnosticsFor`
@@ -159,8 +144,7 @@ export declare class FossilWorkspace {
159
144
  */
160
145
  check(): CheckRow[];
161
146
  /**
162
- * Per-file diagnostic drain — the accessor the LSP Worker uses for its
163
- * per-file `publishDiagnostics` notifications.
147
+ * Per-file diagnostic drain: one file's rows of {@link check}.
164
148
  */
165
149
  diagnosticsFor(handle: FileHandle): CheckRow[];
166
150
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],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,CAAC,MAAM,EAAE,UAAU,GAAG,iBAAiB;IAQhD;;;OAGG;IACH,KAAK,IAAI,QAAQ,EAAE;IAInB;;OAEG;IACH,cAAc,CAAC,MAAM,EAAE,UAAU,GAAG,QAAQ,EAAE;IAI9C;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI;IAM3E;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,aAAa,EAAE;IAIjF;;;;;;;OAOG;IACH,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,aAAa,EAAE;IAIpF;;;;;;;;;;;OAWG;IACH,0BAA0B,CAAC,UAAU,EAAE,sBAAsB,GAAG,IAAI;CAKrE"}
package/dist/client.js CHANGED
@@ -11,24 +11,7 @@
11
11
  * seen when the codemirror tokenizer calls `tokenize` on the main thread).
12
12
  * Mirrors `@fossil-lang/corpus`'s `client.ts` split, the known-good shape.
13
13
  */
14
- import { FossilWorkspace as RawFossilWorkspace, FileHandle as RawFileHandle, tokenize as rawTokenize, semantic_legend as rawSemanticLegend, tokenKinds as rawTokenKinds, start_lsp_worker as rawStartLspWorker, refs as rawRefs, providers as rawProviders, } from '../pkg/fossil_wasm.js';
15
- /**
16
- * Install the LSP-over-postMessage dispatcher on the current Worker scope.
17
- *
18
- * `fossil-wasm` IS the LSP server-side in the browser: `fossil-lsp` is
19
- * native-only (it speaks stdio over crossbeam and does not compile to
20
- * `wasm32`), so the Worker gets an equivalent 16-route dispatch loop over the
21
- * same `fossil-ide` free functions. The Rust function (re-exported from
22
- * `crates/fossil-wasm/src/lsp_worker.rs`) installs `self.onmessage` on the
23
- * Worker scope and owns LSP JSON-RPC dispatch from that point forward.
24
- *
25
- * MUST be called inside a Web Worker scope, AFTER {@link initFossilWasm} has
26
- * resolved. Calling it on the main thread is a no-op (the dispatcher needs
27
- * `DedicatedWorkerGlobalScope.onmessage`).
28
- */
29
- export function start_lsp_worker() {
30
- rawStartLspWorker();
31
- }
14
+ import { FossilWorkspace as RawFossilWorkspace, FileHandle as RawFileHandle, tokenize as rawTokenize, semantic_legend as rawSemanticLegend, tokenKinds as rawTokenKinds, refs as rawRefs, providers as rawProviders, } from '../pkg/fossil_wasm.js';
32
15
  /**
33
16
  * Tokenize a Fossil source string. Returns the byte-range tokens from the
34
17
  * canonical Rust lexer (`fossil_syntax::lexer::raw_lex`) — the single grammar
@@ -191,8 +174,7 @@ export class FossilWorkspace {
191
174
  return this._inner.check();
192
175
  }
193
176
  /**
194
- * Per-file diagnostic drain — the accessor the LSP Worker uses for its
195
- * per-file `publishDiagnostics` notifications.
177
+ * Per-file diagnostic drain: one file's rows of {@link check}.
196
178
  */
197
179
  diagnosticsFor(handle) {
198
180
  return this._inner.diagnostics_for(handle);
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EACL,eAAe,IAAI,kBAAkB,EACrC,UAAU,IAAI,aAAa,EAC3B,QAAQ,IAAI,WAAW,EACvB,eAAe,IAAI,iBAAiB,EACpC,UAAU,IAAI,aAAa,EAC3B,gBAAgB,IAAI,iBAAiB,EACrC,IAAI,IAAI,OAAO,EACf,SAAS,IAAI,YAAY,GAC1B,MAAM,uBAAuB,CAAC;AAmB/B;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,gBAAgB;IAC9B,iBAAiB,EAAE,CAAC;AACtB,CAAC;AAWD;;;;;;;;GAQG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAY;IACnC,6EAA6E;IAC7E,sEAAsE;IACtE,8EAA8E;IAC9E,6EAA6E;IAC7E,OAAO,WAAW,CAAC,IAA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,7 @@
26
26
  */
27
27
  export { initFossilWasm } from './load.js';
28
28
  export type { InitInput } from './load.js';
29
- export { start_lsp_worker, tokenize, tokenKinds, semanticLegend, FossilWorkspace, refs, providers, } from './client.js';
29
+ export { tokenize, tokenKinds, semanticLegend, FossilWorkspace, refs, providers, } from './client.js';
30
30
  export type { FileHandle } from './client.js';
31
31
  export { openProgram } from './program.js';
32
32
  export type { FossilProgram, OpenProgramOptions } from './program.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAQH,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,cAAc,EACd,eAAe,EACf,IAAI,EACJ,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEtE;;;;4EAI4E;AAC5E,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;CACzB;AAED;;oEAEoE;AACpE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,QAAQ,CAAC;IAChB,QAAQ,EAAE,MAAM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AAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,QAAQ,CAAC;CACjB;AAED;;;;;;;;;;;;;;aAca;AACb,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;gCAMgC;AAChC,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,QAAQ,CAAC;CACjB;AAYD;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GACzB,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,MAAM,GACN,WAAW,GACX,MAAM,GACN,QAAQ,GACR,SAAS,CAAC;AAEd,kDAAkD;AAClD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,iBAAiB,CAAC;CAC9B;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,2EAA2E;IAC3E,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B;;;;;;OAMG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAKD,YAAY,EACV,QAAQ,EACR,oBAAoB,EACpB,IAAI,EACJ,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,aAAa,GACd,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -31,6 +31,6 @@
31
31
  // `init()`'s wasm instance from the one the functions use (the crash the
32
32
  // codemirror tokenizer hit on the main thread). This entry only re-exports.
33
33
  export { initFossilWasm } from './load.js';
34
- export { start_lsp_worker, tokenize, tokenKinds, semanticLegend, FossilWorkspace, refs, providers, } from './client.js';
34
+ export { tokenize, tokenKinds, semanticLegend, FossilWorkspace, refs, providers, } from './client.js';
35
35
  export { openProgram } from './program.js';
36
36
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,6EAA6E;AAC7E,iFAAiF;AACjF,iFAAiF;AACjF,2EAA2E;AAC3E,yEAAyE;AACzE,4EAA4E;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG3C,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,cAAc,EACd,eAAe,EACf,IAAI,EACJ,SAAS,GACV,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,6EAA6E;AAC7E,iFAAiF;AACjF,iFAAiF;AACjF,2EAA2E;AAC3E,yEAAyE;AACzE,4EAA4E;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG3C,OAAO,EACL,QAAQ,EACR,UAAU,EACV,cAAc,EACd,eAAe,EACf,IAAI,EACJ,SAAS,GACV,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@fossil-lang/wasm",
3
- "version": "0.3.0-alpha.13",
3
+ "version": "0.3.0-alpha.15",
4
4
  "description": "JS/TS wrapper around the fossil-wasm wasm-bindgen artifacts (--target web). Exposes initFossilWasm + tokenize + semanticLegend + FossilWorkspace class for downstream @fossil-lang/* packages.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/kanzo-tech/fossil.git",
8
+ "url": "git+https://github.com/Kanzo-Tech/fossil-lang.git",
9
9
  "directory": "packages/wasm"
10
10
  },
11
11
  "publishConfig": {
@@ -33,12 +33,12 @@
33
33
  ],
34
34
  "sideEffects": false,
35
35
  "dependencies": {
36
- "@fossil-lang/storage": "0.3.0-alpha.13",
37
- "@fossil-lang/types": "0.3.0-alpha.13"
36
+ "@fossil-lang/storage": "0.3.0-alpha.15",
37
+ "@fossil-lang/types": "0.3.0-alpha.15"
38
38
  },
39
39
  "devDependencies": {
40
40
  "typescript": "^5.6.0",
41
- "vitest": "^2.0.0"
41
+ "vitest": "^4.1.11"
42
42
  },
43
43
  "scripts": {
44
44
  "build:wasm": "bash scripts/build-wasm.sh",
@@ -62,8 +62,7 @@ export class FileHandle {
62
62
  * its guard where a panic did not.
63
63
  *
64
64
  * The Rust-side [`FossilWorkspace`] keeps its `&mut self` signatures
65
- * untouched: `lsp_worker` already owns it inside an `Rc<RefCell<…>>`, and the
66
- * native tests drive it directly. Only the JS boundary changed.
65
+ * untouched: the native tests drive it directly. Only the JS boundary changed.
67
66
  */
68
67
  export class FossilWorkspace {
69
68
  free(): void;
@@ -71,8 +70,8 @@ export class FossilWorkspace {
71
70
  /**
72
71
  * Every open **program**'s diagnostics as a flat JS array of
73
72
  * `{ uri, range, severity, message }` rows keyed by file URI — the
74
- * diagnostics panel's view. It is NOT what the LSP Worker publishes; see
75
- * [`CheckRow`], and `lsp_worker::publish_diagnostics` for the wire.
73
+ * diagnostics panel's view. It is NOT the LSP wire's shape; see
74
+ * [`CheckRow`].
76
75
  *
77
76
  * A buffer the installed provider catalogue claims — a `.shex` being
78
77
  * edited, a `.csv`, a `.parquet` — is an INPUT and is not parsed as fossil.
@@ -122,8 +121,7 @@ export class FossilWorkspace {
122
121
  * Per-file diagnostic drain: `check()` returns the workspace-wide flat
123
122
  * array, this returns one file's rows, so a host can refresh one buffer's
124
123
  * panel without partitioning the workspace array on the JS side. It is NOT
125
- * what the LSP Worker publishes — that is
126
- * [`fossil_ide::lsp_diagnostics`], through `lsp_worker::publish_diagnostics`.
124
+ * the LSP wire's shape — that is [`fossil_ide::lsp_diagnostics`].
127
125
  *
128
126
  * # Errors
129
127
  *
@@ -299,20 +297,6 @@ export function refs(program: string): any;
299
297
  */
300
298
  export function semantic_legend(): any;
301
299
 
302
- /**
303
- * Worker entrypoint. Idempotent in spirit — calling twice replaces the
304
- * previous `onmessage` handler (the leaked Closure from the first call
305
- * stays alive but is no longer referenced by the global scope).
306
- *
307
- * Must be called from a `DedicatedWorker` global scope; returns a JS error
308
- * otherwise (e.g. if called from the main thread).
309
- *
310
- * # Errors
311
- *
312
- * Returns a JS error when not running inside a `DedicatedWorker` scope.
313
- */
314
- export function start_lsp_worker(): void;
315
-
316
300
  /**
317
301
  * The name of every [`TokenRow::kind`], indexed BY that kind.
318
302
  *
@@ -352,7 +336,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
352
336
 
353
337
  export interface InitOutput {
354
338
  readonly memory: WebAssembly.Memory;
355
- readonly start_lsp_worker: () => [number, number];
356
339
  readonly tokenize: (a: number, b: number) => [number, number, number];
357
340
  readonly semantic_legend: () => [number, number, number];
358
341
  readonly tokenKinds: () => [number, number, number];
@@ -374,14 +357,12 @@ export interface InitOutput {
374
357
  readonly fossilworkspace_registerInferredDescriptor: (a: number, b: number, c: number) => [number, number];
375
358
  readonly providers: () => [number, number, number];
376
359
  readonly refs: (a: number, b: number) => [number, number, number];
377
- readonly wasm_bindgen__convert__closures_____invoke__h6c9357f9f01d3cd7: (a: number, b: number, c: any) => void;
378
360
  readonly __wbindgen_malloc_command_export: (a: number, b: number) => number;
379
361
  readonly __wbindgen_realloc_command_export: (a: number, b: number, c: number, d: number) => number;
380
362
  readonly __wbindgen_exn_store_command_export: (a: number) => void;
381
363
  readonly __externref_table_alloc_command_export: () => number;
382
364
  readonly __wbindgen_externrefs: WebAssembly.Table;
383
365
  readonly __wbindgen_free_command_export: (a: number, b: number, c: number) => void;
384
- readonly __wbindgen_destroy_closure_command_export: (a: number, b: number) => void;
385
366
  readonly __externref_table_dealloc_command_export: (a: number) => void;
386
367
  readonly __wbindgen_start: () => void;
387
368
  }
@@ -75,8 +75,7 @@ if (Symbol.dispose) FileHandle.prototype[Symbol.dispose] = FileHandle.prototype.
75
75
  * its guard where a panic did not.
76
76
  *
77
77
  * The Rust-side [`FossilWorkspace`] keeps its `&mut self` signatures
78
- * untouched: `lsp_worker` already owns it inside an `Rc<RefCell<…>>`, and the
79
- * native tests drive it directly. Only the JS boundary changed.
78
+ * untouched: the native tests drive it directly. Only the JS boundary changed.
80
79
  */
81
80
  export class FossilWorkspace {
82
81
  __destroy_into_raw() {
@@ -92,8 +91,8 @@ export class FossilWorkspace {
92
91
  /**
93
92
  * Every open **program**'s diagnostics as a flat JS array of
94
93
  * `{ uri, range, severity, message }` rows keyed by file URI — the
95
- * diagnostics panel's view. It is NOT what the LSP Worker publishes; see
96
- * [`CheckRow`], and `lsp_worker::publish_diagnostics` for the wire.
94
+ * diagnostics panel's view. It is NOT the LSP wire's shape; see
95
+ * [`CheckRow`].
97
96
  *
98
97
  * A buffer the installed provider catalogue claims — a `.shex` being
99
98
  * edited, a `.csv`, a `.parquet` — is an INPUT and is not parsed as fossil.
@@ -168,8 +167,7 @@ export class FossilWorkspace {
168
167
  * Per-file diagnostic drain: `check()` returns the workspace-wide flat
169
168
  * array, this returns one file's rows, so a host can refresh one buffer's
170
169
  * panel without partitioning the workspace array on the JS side. It is NOT
171
- * what the LSP Worker publishes — that is
172
- * [`fossil_ide::lsp_diagnostics`], through `lsp_worker::publish_diagnostics`.
170
+ * the LSP wire's shape — that is [`fossil_ide::lsp_diagnostics`].
173
171
  *
174
172
  * # Errors
175
173
  *
@@ -472,25 +470,6 @@ export function semantic_legend() {
472
470
  return takeFromExternrefTable0(ret[0]);
473
471
  }
474
472
 
475
- /**
476
- * Worker entrypoint. Idempotent in spirit — calling twice replaces the
477
- * previous `onmessage` handler (the leaked Closure from the first call
478
- * stays alive but is no longer referenced by the global scope).
479
- *
480
- * Must be called from a `DedicatedWorker` global scope; returns a JS error
481
- * otherwise (e.g. if called from the main thread).
482
- *
483
- * # Errors
484
- *
485
- * Returns a JS error when not running inside a `DedicatedWorker` scope.
486
- */
487
- export function start_lsp_worker() {
488
- const ret = wasm.start_lsp_worker();
489
- if (ret[1]) {
490
- throw takeFromExternrefTable0(ret[0]);
491
- }
492
- }
493
-
494
473
  /**
495
474
  * The name of every [`TokenRow::kind`], indexed BY that kind.
496
475
  *
@@ -556,12 +535,6 @@ function __wbg_get_imports() {
556
535
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
557
536
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
558
537
  },
559
- __wbg___wbindgen_bigint_get_as_i64_3af6d4ca77193a4b: function(arg0, arg1) {
560
- const v = arg1;
561
- const ret = typeof(v) === 'bigint' ? v : undefined;
562
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
563
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
564
- },
565
538
  __wbg___wbindgen_boolean_get_c3dd5c39f1b5a12b: function(arg0) {
566
539
  const v = arg0;
567
540
  const ret = typeof(v) === 'boolean' ? v : undefined;
@@ -574,14 +547,6 @@ function __wbg_get_imports() {
574
547
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
575
548
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
576
549
  },
577
- __wbg___wbindgen_in_2617fa76397620d3: function(arg0, arg1) {
578
- const ret = arg0 in arg1;
579
- return ret;
580
- },
581
- __wbg___wbindgen_is_bigint_d6a8167cac401b95: function(arg0) {
582
- const ret = typeof(arg0) === 'bigint';
583
- return ret;
584
- },
585
550
  __wbg___wbindgen_is_function_2f0fd7ceb86e64c5: function(arg0) {
586
551
  const ret = typeof(arg0) === 'function';
587
552
  return ret;
@@ -591,18 +556,6 @@ function __wbg_get_imports() {
591
556
  const ret = typeof(val) === 'object' && val !== null;
592
557
  return ret;
593
558
  },
594
- __wbg___wbindgen_is_string_eddc07a3efad52e6: function(arg0) {
595
- const ret = typeof(arg0) === 'string';
596
- return ret;
597
- },
598
- __wbg___wbindgen_is_undefined_244a92c34d3b6ec0: function(arg0) {
599
- const ret = arg0 === undefined;
600
- return ret;
601
- },
602
- __wbg___wbindgen_jsval_eq_403eaa3610500a25: function(arg0, arg1) {
603
- const ret = arg0 === arg1;
604
- return ret;
605
- },
606
559
  __wbg___wbindgen_jsval_loose_eq_1978f1e77b4bce62: function(arg0, arg1) {
607
560
  const ret = arg0 == arg1;
608
561
  return ret;
@@ -628,10 +581,6 @@ function __wbg_get_imports() {
628
581
  const ret = arg0.call(arg1);
629
582
  return ret;
630
583
  }, arguments); },
631
- __wbg_data_4a14fad4c5f216c4: function(arg0) {
632
- const ret = arg0.data;
633
- return ret;
634
- },
635
584
  __wbg_done_b1afd6201ac045e0: function(arg0) {
636
585
  const ret = arg0.done;
637
586
  return ret;
@@ -666,10 +615,6 @@ function __wbg_get_imports() {
666
615
  const ret = arg0[arg1 >>> 0];
667
616
  return ret;
668
617
  },
669
- __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
670
- const ret = arg0[arg1];
671
- return ret;
672
- },
673
618
  __wbg_instanceof_ArrayBuffer_eab9f28fbec23477: function(arg0) {
674
619
  let result;
675
620
  try {
@@ -680,26 +625,6 @@ function __wbg_get_imports() {
680
625
  const ret = result;
681
626
  return ret;
682
627
  },
683
- __wbg_instanceof_DedicatedWorkerGlobalScope_32441a4d2ca5f2c4: function(arg0) {
684
- let result;
685
- try {
686
- result = arg0 instanceof DedicatedWorkerGlobalScope;
687
- } catch (_) {
688
- result = false;
689
- }
690
- const ret = result;
691
- return ret;
692
- },
693
- __wbg_instanceof_Map_10d4edf60fcf9327: function(arg0) {
694
- let result;
695
- try {
696
- result = arg0 instanceof Map;
697
- } catch (_) {
698
- result = false;
699
- }
700
- const ret = result;
701
- return ret;
702
- },
703
628
  __wbg_instanceof_Uint8Array_57d77acd50e4c44d: function(arg0) {
704
629
  let result;
705
630
  try {
@@ -710,14 +635,6 @@ function __wbg_get_imports() {
710
635
  const ret = result;
711
636
  return ret;
712
637
  },
713
- __wbg_isArray_c6c6ef8308995bcf: function(arg0) {
714
- const ret = Array.isArray(arg0);
715
- return ret;
716
- },
717
- __wbg_isSafeInteger_3c56c421a5b4cce4: function(arg0) {
718
- const ret = Number.isSafeInteger(arg0);
719
- return ret;
720
- },
721
638
  __wbg_iterator_9d68985a1d096fc2: function() {
722
639
  const ret = Symbol.iterator;
723
640
  return ret;
@@ -742,10 +659,6 @@ function __wbg_get_imports() {
742
659
  const ret = new Array();
743
660
  return ret;
744
661
  },
745
- __wbg_new_46ae4e4ff2a07a64: function() {
746
- const ret = new Map();
747
- return ret;
748
- },
749
662
  __wbg_new_8454eee672b2ba6e: function(arg0) {
750
663
  const ret = new Uint8Array(arg0);
751
664
  return ret;
@@ -758,25 +671,15 @@ function __wbg_get_imports() {
758
671
  const ret = arg0.next();
759
672
  return ret;
760
673
  }, arguments); },
761
- __wbg_postMessage_ead2ef5ee8c7a94e: function() { return handleError(function (arg0, arg1) {
762
- arg0.postMessage(arg1);
763
- }, arguments); },
764
674
  __wbg_prototypesetcall_fd4050e806e1d519: function(arg0, arg1, arg2) {
765
675
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
766
676
  },
767
677
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
768
678
  arg0[arg1] = arg2;
769
679
  },
770
- __wbg_set_82f7a370f604db70: function(arg0, arg1, arg2) {
771
- const ret = arg0.set(arg1, arg2);
772
- return ret;
773
- },
774
680
  __wbg_set_f614f6a0608d1d1d: function(arg0, arg1, arg2) {
775
681
  arg0[arg1 >>> 0] = arg2;
776
682
  },
777
- __wbg_set_onmessage_2686976b9bf47e87: function(arg0, arg1) {
778
- arg0.onmessage = arg1;
779
- },
780
683
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
781
684
  const ret = arg1.stack;
782
685
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
@@ -784,51 +687,20 @@ function __wbg_get_imports() {
784
687
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
785
688
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
786
689
  },
787
- __wbg_static_accessor_GLOBAL_THIS_1c7f1bd6c6941fdb: function() {
788
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
789
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
790
- },
791
- __wbg_static_accessor_GLOBAL_e039bc914f83e74e: function() {
792
- const ret = typeof global === 'undefined' ? null : global;
793
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
794
- },
795
- __wbg_static_accessor_SELF_8bf8c48c28420ad5: function() {
796
- const ret = typeof self === 'undefined' ? null : self;
797
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
798
- },
799
- __wbg_static_accessor_WINDOW_6aeee9b51652ee0f: function() {
800
- const ret = typeof window === 'undefined' ? null : window;
801
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
802
- },
803
690
  __wbg_value_f852716acdeb3e82: function(arg0) {
804
691
  const ret = arg0.value;
805
692
  return ret;
806
693
  },
807
- __wbindgen_cast_0000000000000001: function(arg0, arg1) {
808
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 6, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
809
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h6c9357f9f01d3cd7);
810
- return ret;
811
- },
812
- __wbindgen_cast_0000000000000002: function(arg0) {
694
+ __wbindgen_cast_0000000000000001: function(arg0) {
813
695
  // Cast intrinsic for `F64 -> Externref`.
814
696
  const ret = arg0;
815
697
  return ret;
816
698
  },
817
- __wbindgen_cast_0000000000000003: function(arg0) {
818
- // Cast intrinsic for `I64 -> Externref`.
819
- const ret = arg0;
820
- return ret;
821
- },
822
- __wbindgen_cast_0000000000000004: function(arg0, arg1) {
699
+ __wbindgen_cast_0000000000000002: function(arg0, arg1) {
823
700
  // Cast intrinsic for `Ref(String) -> Externref`.
824
701
  const ret = getStringFromWasm0(arg0, arg1);
825
702
  return ret;
826
703
  },
827
- __wbindgen_cast_0000000000000005: function(arg0) {
828
- // Cast intrinsic for `U64 -> Externref`.
829
- const ret = BigInt.asUintN(64, arg0);
830
- return ret;
831
- },
832
704
  __wbindgen_init_externref_table: function() {
833
705
  const table = wasm.__wbindgen_externrefs;
834
706
  const offset = table.grow(4);
@@ -845,10 +717,6 @@ function __wbg_get_imports() {
845
717
  };
846
718
  }
847
719
 
848
- function wasm_bindgen__convert__closures_____invoke__h6c9357f9f01d3cd7(arg0, arg1, arg2) {
849
- wasm.wasm_bindgen__convert__closures_____invoke__h6c9357f9f01d3cd7(arg0, arg1, arg2);
850
- }
851
-
852
720
  const FileHandleFinalization = (typeof FinalizationRegistry === 'undefined')
853
721
  ? { register: () => {}, unregister: () => {} }
854
722
  : new FinalizationRegistry(ptr => wasm.__wbg_filehandle_free(ptr, 1));
@@ -868,10 +736,6 @@ function _assertClass(instance, klass) {
868
736
  }
869
737
  }
870
738
 
871
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
872
- ? { register: () => {}, unregister: () => {} }
873
- : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure_command_export(state.a, state.b));
874
-
875
739
  function debugString(val) {
876
740
  // primitive types
877
741
  const type = typeof val;
@@ -975,34 +839,6 @@ function isLikeNone(x) {
975
839
  return x === undefined || x === null;
976
840
  }
977
841
 
978
- function makeMutClosure(arg0, arg1, f) {
979
- const state = { a: arg0, b: arg1, cnt: 1 };
980
- const real = (...args) => {
981
-
982
- // First up with a closure we increment the internal reference
983
- // count. This ensures that the Rust closure environment won't
984
- // be deallocated while we're invoking it.
985
- state.cnt++;
986
- const a = state.a;
987
- state.a = 0;
988
- try {
989
- return f(a, state.b, ...args);
990
- } finally {
991
- state.a = a;
992
- real._wbg_cb_unref();
993
- }
994
- };
995
- real._wbg_cb_unref = () => {
996
- if (--state.cnt === 0) {
997
- wasm.__wbindgen_destroy_closure_command_export(state.a, state.b);
998
- state.a = 0;
999
- CLOSURE_DTORS.unregister(state);
1000
- }
1001
- };
1002
- CLOSURE_DTORS.register(real, state, state);
1003
- return real;
1004
- }
1005
-
1006
842
  function passStringToWasm0(arg, malloc, realloc) {
1007
843
  if (realloc === undefined) {
1008
844
  const buf = cachedTextEncoder.encode(arg);
Binary file
@@ -1,7 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const start_lsp_worker: () => [number, number];
5
4
  export const tokenize: (a: number, b: number) => [number, number, number];
6
5
  export const semantic_legend: () => [number, number, number];
7
6
  export const tokenKinds: () => [number, number, number];
@@ -23,13 +22,11 @@ export const fossilworkspace_gotoDefinition: (a: number, b: number, c: number, d
23
22
  export const fossilworkspace_registerInferredDescriptor: (a: number, b: number, c: number) => [number, number];
24
23
  export const providers: () => [number, number, number];
25
24
  export const refs: (a: number, b: number) => [number, number, number];
26
- export const wasm_bindgen__convert__closures_____invoke__h6c9357f9f01d3cd7: (a: number, b: number, c: any) => void;
27
25
  export const __wbindgen_malloc_command_export: (a: number, b: number) => number;
28
26
  export const __wbindgen_realloc_command_export: (a: number, b: number, c: number, d: number) => number;
29
27
  export const __wbindgen_exn_store_command_export: (a: number) => void;
30
28
  export const __externref_table_alloc_command_export: () => number;
31
29
  export const __wbindgen_externrefs: WebAssembly.Table;
32
30
  export const __wbindgen_free_command_export: (a: number, b: number, c: number) => void;
33
- export const __wbindgen_destroy_closure_command_export: (a: number, b: number) => void;
34
31
  export const __externref_table_dealloc_command_export: (a: number) => void;
35
32
  export const __wbindgen_start: () => void;