qlue-ls 0.19.1 → 0.20.0
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/package.json +1 -1
- package/qlue_ls.d.ts +8 -8
- package/qlue_ls.js +45 -64
- package/qlue_ls_bg.wasm +0 -0
package/package.json
CHANGED
package/qlue_ls.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function format_raw(text: string): string;
|
|
4
3
|
export function init_language_server(writer: WritableStreamDefaultWriter): Server;
|
|
5
4
|
export function listen(server: Server, reader: ReadableStreamDefaultReader): Promise<void>;
|
|
6
|
-
export function
|
|
5
|
+
export function format_raw(text: string): string;
|
|
7
6
|
export function get_parse_tree(input: string, offset: number): any;
|
|
7
|
+
export function determine_operation_type(input: string): string;
|
|
8
8
|
export class Server {
|
|
9
9
|
private constructor();
|
|
10
10
|
free(): void;
|
|
@@ -16,21 +16,21 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
16
16
|
export interface InitOutput {
|
|
17
17
|
readonly memory: WebAssembly.Memory;
|
|
18
18
|
readonly __wbg_server_free: (a: number, b: number) => void;
|
|
19
|
-
readonly format_raw: (a: number, b: number) => [number, number, number, number];
|
|
20
19
|
readonly init_language_server: (a: any) => number;
|
|
21
20
|
readonly listen: (a: number, b: any) => any;
|
|
22
|
-
readonly
|
|
21
|
+
readonly format_raw: (a: number, b: number) => [number, number, number, number];
|
|
23
22
|
readonly get_parse_tree: (a: number, b: number, c: number) => any;
|
|
23
|
+
readonly determine_operation_type: (a: number, b: number) => [number, number];
|
|
24
24
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
25
25
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
26
26
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
27
27
|
readonly __externref_table_alloc: () => number;
|
|
28
28
|
readonly __wbindgen_export_4: WebAssembly.Table;
|
|
29
|
-
readonly
|
|
30
|
-
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
29
|
+
readonly __wbindgen_export_5: WebAssembly.Table;
|
|
31
30
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
31
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
32
|
+
readonly closure1389_externref_shim: (a: number, b: number, c: any) => void;
|
|
33
|
+
readonly closure1920_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
34
34
|
readonly __wbindgen_start: () => void;
|
|
35
35
|
}
|
|
36
36
|
|
package/qlue_ls.js
CHANGED
|
@@ -186,7 +186,7 @@ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
|
186
186
|
? { register: () => {}, unregister: () => {} }
|
|
187
187
|
: new FinalizationRegistry(
|
|
188
188
|
state => {
|
|
189
|
-
wasm.
|
|
189
|
+
wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
|
|
190
190
|
}
|
|
191
191
|
);
|
|
192
192
|
|
|
@@ -204,7 +204,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
204
204
|
return f(a, state.b, ...args);
|
|
205
205
|
} finally {
|
|
206
206
|
if (--state.cnt === 0) {
|
|
207
|
-
wasm.
|
|
207
|
+
wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
|
|
208
208
|
CLOSURE_DTORS.unregister(state);
|
|
209
209
|
} else {
|
|
210
210
|
state.a = a;
|
|
@@ -215,6 +215,31 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
215
215
|
CLOSURE_DTORS.register(real, state, state);
|
|
216
216
|
return real;
|
|
217
217
|
}
|
|
218
|
+
/**
|
|
219
|
+
* @param {WritableStreamDefaultWriter} writer
|
|
220
|
+
* @returns {Server}
|
|
221
|
+
*/
|
|
222
|
+
export function init_language_server(writer) {
|
|
223
|
+
const ret = wasm.init_language_server(writer);
|
|
224
|
+
return Server.__wrap(ret);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function _assertClass(instance, klass) {
|
|
228
|
+
if (!(instance instanceof klass)) {
|
|
229
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* @param {Server} server
|
|
234
|
+
* @param {ReadableStreamDefaultReader} reader
|
|
235
|
+
* @returns {Promise<void>}
|
|
236
|
+
*/
|
|
237
|
+
export function listen(server, reader) {
|
|
238
|
+
_assertClass(server, Server);
|
|
239
|
+
var ptr0 = server.__destroy_into_raw();
|
|
240
|
+
const ret = wasm.listen(ptr0, reader);
|
|
241
|
+
return ret;
|
|
242
|
+
}
|
|
218
243
|
|
|
219
244
|
function takeFromExternrefTable0(idx) {
|
|
220
245
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
@@ -247,28 +272,14 @@ export function format_raw(text) {
|
|
|
247
272
|
}
|
|
248
273
|
|
|
249
274
|
/**
|
|
250
|
-
* @param {
|
|
251
|
-
* @
|
|
252
|
-
|
|
253
|
-
export function init_language_server(writer) {
|
|
254
|
-
const ret = wasm.init_language_server(writer);
|
|
255
|
-
return Server.__wrap(ret);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
function _assertClass(instance, klass) {
|
|
259
|
-
if (!(instance instanceof klass)) {
|
|
260
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* @param {Server} server
|
|
265
|
-
* @param {ReadableStreamDefaultReader} reader
|
|
266
|
-
* @returns {Promise<void>}
|
|
275
|
+
* @param {string} input
|
|
276
|
+
* @param {number} offset
|
|
277
|
+
* @returns {any}
|
|
267
278
|
*/
|
|
268
|
-
export function
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
const ret = wasm.
|
|
279
|
+
export function get_parse_tree(input, offset) {
|
|
280
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
|
+
const len0 = WASM_VECTOR_LEN;
|
|
282
|
+
const ret = wasm.get_parse_tree(ptr0, len0, offset);
|
|
272
283
|
return ret;
|
|
273
284
|
}
|
|
274
285
|
|
|
@@ -291,24 +302,12 @@ export function determine_operation_type(input) {
|
|
|
291
302
|
}
|
|
292
303
|
}
|
|
293
304
|
|
|
294
|
-
/**
|
|
295
|
-
* @param {string} input
|
|
296
|
-
* @param {number} offset
|
|
297
|
-
* @returns {any}
|
|
298
|
-
*/
|
|
299
|
-
export function get_parse_tree(input, offset) {
|
|
300
|
-
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
301
|
-
const len0 = WASM_VECTOR_LEN;
|
|
302
|
-
const ret = wasm.get_parse_tree(ptr0, len0, offset);
|
|
303
|
-
return ret;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
305
|
function __wbg_adapter_6(arg0, arg1, arg2) {
|
|
307
|
-
wasm.
|
|
306
|
+
wasm.closure1389_externref_shim(arg0, arg1, arg2);
|
|
308
307
|
}
|
|
309
308
|
|
|
310
|
-
function
|
|
311
|
-
wasm.
|
|
309
|
+
function __wbg_adapter_78(arg0, arg1, arg2, arg3) {
|
|
310
|
+
wasm.closure1920_externref_shim(arg0, arg1, arg2, arg3);
|
|
312
311
|
}
|
|
313
312
|
|
|
314
313
|
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
@@ -412,17 +411,6 @@ function __wbg_get_imports() {
|
|
|
412
411
|
imports.wbg.__wbg_error_0889f151acea569e = function(arg0, arg1, arg2, arg3) {
|
|
413
412
|
console.error(arg0, arg1, arg2, arg3);
|
|
414
413
|
};
|
|
415
|
-
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
416
|
-
let deferred0_0;
|
|
417
|
-
let deferred0_1;
|
|
418
|
-
try {
|
|
419
|
-
deferred0_0 = arg0;
|
|
420
|
-
deferred0_1 = arg1;
|
|
421
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
422
|
-
} finally {
|
|
423
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
414
|
imports.wbg.__wbg_error_99981e16d476aa5c = function(arg0) {
|
|
427
415
|
console.error(arg0);
|
|
428
416
|
};
|
|
@@ -513,7 +501,7 @@ function __wbg_get_imports() {
|
|
|
513
501
|
const a = state0.a;
|
|
514
502
|
state0.a = 0;
|
|
515
503
|
try {
|
|
516
|
-
return
|
|
504
|
+
return __wbg_adapter_78(a, state0.b, arg0, arg1);
|
|
517
505
|
} finally {
|
|
518
506
|
state0.a = a;
|
|
519
507
|
}
|
|
@@ -528,14 +516,14 @@ function __wbg_get_imports() {
|
|
|
528
516
|
const ret = new Uint8Array(arg0);
|
|
529
517
|
return ret;
|
|
530
518
|
};
|
|
531
|
-
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
532
|
-
const ret = new Error();
|
|
533
|
-
return ret;
|
|
534
|
-
};
|
|
535
519
|
imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
|
|
536
520
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
537
521
|
return ret;
|
|
538
522
|
};
|
|
523
|
+
imports.wbg.__wbg_newwithargs_b8065bb443501079 = function(arg0, arg1, arg2, arg3) {
|
|
524
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
525
|
+
return ret;
|
|
526
|
+
};
|
|
539
527
|
imports.wbg.__wbg_newwithstrandinit_b5d168a29a3fd85f = function() { return handleError(function (arg0, arg1, arg2) {
|
|
540
528
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
541
529
|
return ret;
|
|
@@ -593,13 +581,6 @@ function __wbg_get_imports() {
|
|
|
593
581
|
imports.wbg.__wbg_setsignal_8c45ad1247a74809 = function(arg0, arg1) {
|
|
594
582
|
arg0.signal = arg1;
|
|
595
583
|
};
|
|
596
|
-
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
597
|
-
const ret = arg1.stack;
|
|
598
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
599
|
-
const len1 = WASM_VECTOR_LEN;
|
|
600
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
601
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
602
|
-
};
|
|
603
584
|
imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
|
|
604
585
|
const ret = typeof global === 'undefined' ? null : global;
|
|
605
586
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -707,9 +688,9 @@ function __wbg_get_imports() {
|
|
|
707
688
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
708
689
|
return ret;
|
|
709
690
|
};
|
|
710
|
-
imports.wbg.
|
|
711
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
712
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
691
|
+
imports.wbg.__wbindgen_cast_6db7aa72e01bd6b9 = function(arg0, arg1) {
|
|
692
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1388, function: Function { arguments: [Externref], shim_idx: 1389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
693
|
+
const ret = makeMutClosure(arg0, arg1, 1388, __wbg_adapter_6);
|
|
713
694
|
return ret;
|
|
714
695
|
};
|
|
715
696
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
package/qlue_ls_bg.wasm
CHANGED
|
Binary file
|