qlue-ls 0.5.6 → 0.5.7
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 +1 -1
- package/qlue_ls_bg.js +151 -83
- package/qlue_ls_bg.wasm +0 -0
package/package.json
CHANGED
package/qlue_ls.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function init_language_server(writer: WritableStreamDefaultWriter): Server;
|
|
4
3
|
export function format_raw(text: string): string;
|
|
5
4
|
export function determine_operation_type(text: string): string;
|
|
5
|
+
export function init_language_server(writer: WritableStreamDefaultWriter): Server;
|
|
6
6
|
export function get_parse_tree(input: string, offset: number): any;
|
|
7
7
|
export class Server {
|
|
8
8
|
private constructor();
|
package/qlue_ls_bg.js
CHANGED
|
@@ -43,10 +43,77 @@ function isLikeNone(x) {
|
|
|
43
43
|
return x === undefined || x === null;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
let WASM_VECTOR_LEN = 0;
|
|
47
|
+
|
|
48
|
+
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
49
|
+
|
|
50
|
+
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
51
|
+
|
|
52
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
53
|
+
? function (arg, view) {
|
|
54
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
55
|
+
}
|
|
56
|
+
: function (arg, view) {
|
|
57
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
58
|
+
view.set(buf);
|
|
59
|
+
return {
|
|
60
|
+
read: arg.length,
|
|
61
|
+
written: buf.length
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
66
|
+
|
|
67
|
+
if (realloc === undefined) {
|
|
68
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
69
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
70
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
71
|
+
WASM_VECTOR_LEN = buf.length;
|
|
72
|
+
return ptr;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
let len = arg.length;
|
|
76
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
77
|
+
|
|
78
|
+
const mem = getUint8ArrayMemory0();
|
|
79
|
+
|
|
80
|
+
let offset = 0;
|
|
81
|
+
|
|
82
|
+
for (; offset < len; offset++) {
|
|
83
|
+
const code = arg.charCodeAt(offset);
|
|
84
|
+
if (code > 0x7F) break;
|
|
85
|
+
mem[ptr + offset] = code;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (offset !== len) {
|
|
89
|
+
if (offset !== 0) {
|
|
90
|
+
arg = arg.slice(offset);
|
|
91
|
+
}
|
|
92
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
93
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
94
|
+
const ret = encodeString(arg, view);
|
|
95
|
+
|
|
96
|
+
offset += ret.written;
|
|
97
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
WASM_VECTOR_LEN = offset;
|
|
101
|
+
return ptr;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
let cachedDataViewMemory0 = null;
|
|
105
|
+
|
|
106
|
+
function getDataViewMemory0() {
|
|
107
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
108
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
109
|
+
}
|
|
110
|
+
return cachedDataViewMemory0;
|
|
111
|
+
}
|
|
112
|
+
|
|
46
113
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
47
114
|
? { register: () => {}, unregister: () => {} }
|
|
48
115
|
: new FinalizationRegistry(state => {
|
|
49
|
-
wasm.
|
|
116
|
+
wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b)
|
|
50
117
|
});
|
|
51
118
|
|
|
52
119
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
@@ -62,7 +129,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
62
129
|
return f(a, state.b, ...args);
|
|
63
130
|
} finally {
|
|
64
131
|
if (--state.cnt === 0) {
|
|
65
|
-
wasm.
|
|
132
|
+
wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
|
|
66
133
|
CLOSURE_DTORS.unregister(state);
|
|
67
134
|
} else {
|
|
68
135
|
state.a = a;
|
|
@@ -139,81 +206,6 @@ function debugString(val) {
|
|
|
139
206
|
return className;
|
|
140
207
|
}
|
|
141
208
|
|
|
142
|
-
let WASM_VECTOR_LEN = 0;
|
|
143
|
-
|
|
144
|
-
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
145
|
-
|
|
146
|
-
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
147
|
-
|
|
148
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
149
|
-
? function (arg, view) {
|
|
150
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
151
|
-
}
|
|
152
|
-
: function (arg, view) {
|
|
153
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
154
|
-
view.set(buf);
|
|
155
|
-
return {
|
|
156
|
-
read: arg.length,
|
|
157
|
-
written: buf.length
|
|
158
|
-
};
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
162
|
-
|
|
163
|
-
if (realloc === undefined) {
|
|
164
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
165
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
166
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
167
|
-
WASM_VECTOR_LEN = buf.length;
|
|
168
|
-
return ptr;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
let len = arg.length;
|
|
172
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
173
|
-
|
|
174
|
-
const mem = getUint8ArrayMemory0();
|
|
175
|
-
|
|
176
|
-
let offset = 0;
|
|
177
|
-
|
|
178
|
-
for (; offset < len; offset++) {
|
|
179
|
-
const code = arg.charCodeAt(offset);
|
|
180
|
-
if (code > 0x7F) break;
|
|
181
|
-
mem[ptr + offset] = code;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
if (offset !== len) {
|
|
185
|
-
if (offset !== 0) {
|
|
186
|
-
arg = arg.slice(offset);
|
|
187
|
-
}
|
|
188
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
189
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
190
|
-
const ret = encodeString(arg, view);
|
|
191
|
-
|
|
192
|
-
offset += ret.written;
|
|
193
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
WASM_VECTOR_LEN = offset;
|
|
197
|
-
return ptr;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
let cachedDataViewMemory0 = null;
|
|
201
|
-
|
|
202
|
-
function getDataViewMemory0() {
|
|
203
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
204
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
205
|
-
}
|
|
206
|
-
return cachedDataViewMemory0;
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* @param {WritableStreamDefaultWriter} writer
|
|
210
|
-
* @returns {Server}
|
|
211
|
-
*/
|
|
212
|
-
export function init_language_server(writer) {
|
|
213
|
-
const ret = wasm.init_language_server(writer);
|
|
214
|
-
return Server.__wrap(ret);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
209
|
function takeFromExternrefTable0(idx) {
|
|
218
210
|
const value = wasm.__wbindgen_export_2.get(idx);
|
|
219
211
|
wasm.__externref_table_dealloc(idx);
|
|
@@ -269,6 +261,15 @@ export function determine_operation_type(text) {
|
|
|
269
261
|
}
|
|
270
262
|
}
|
|
271
263
|
|
|
264
|
+
/**
|
|
265
|
+
* @param {WritableStreamDefaultWriter} writer
|
|
266
|
+
* @returns {Server}
|
|
267
|
+
*/
|
|
268
|
+
export function init_language_server(writer) {
|
|
269
|
+
const ret = wasm.init_language_server(writer);
|
|
270
|
+
return Server.__wrap(ret);
|
|
271
|
+
}
|
|
272
|
+
|
|
272
273
|
/**
|
|
273
274
|
* @param {string} input
|
|
274
275
|
* @param {number} offset
|
|
@@ -282,13 +283,15 @@ export function get_parse_tree(input, offset) {
|
|
|
282
283
|
}
|
|
283
284
|
|
|
284
285
|
function __wbg_adapter_24(arg0, arg1, arg2) {
|
|
285
|
-
wasm.
|
|
286
|
+
wasm.closure571_externref_shim(arg0, arg1, arg2);
|
|
286
287
|
}
|
|
287
288
|
|
|
288
|
-
function
|
|
289
|
-
wasm.
|
|
289
|
+
function __wbg_adapter_86(arg0, arg1, arg2, arg3) {
|
|
290
|
+
wasm.closure583_externref_shim(arg0, arg1, arg2, arg3);
|
|
290
291
|
}
|
|
291
292
|
|
|
293
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
294
|
+
|
|
292
295
|
const ServerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
293
296
|
? { register: () => {}, unregister: () => {} }
|
|
294
297
|
: new FinalizationRegistry(ptr => wasm.__wbg_server_free(ptr >>> 0, 1));
|
|
@@ -346,15 +349,36 @@ export function __wbg_error_80de38b3f7cc3c3c(arg0, arg1, arg2, arg3) {
|
|
|
346
349
|
console.error(arg0, arg1, arg2, arg3);
|
|
347
350
|
};
|
|
348
351
|
|
|
352
|
+
export function __wbg_fetch_509096533071c657(arg0, arg1) {
|
|
353
|
+
const ret = arg0.fetch(arg1);
|
|
354
|
+
return ret;
|
|
355
|
+
};
|
|
356
|
+
|
|
349
357
|
export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
|
|
350
358
|
const ret = Reflect.get(arg0, arg1);
|
|
351
359
|
return ret;
|
|
352
360
|
}, arguments) };
|
|
353
361
|
|
|
362
|
+
export function __wbg_headers_7852a8ea641c1379(arg0) {
|
|
363
|
+
const ret = arg0.headers;
|
|
364
|
+
return ret;
|
|
365
|
+
};
|
|
366
|
+
|
|
354
367
|
export function __wbg_info_033d8b8a0838f1d3(arg0, arg1, arg2, arg3) {
|
|
355
368
|
console.info(arg0, arg1, arg2, arg3);
|
|
356
369
|
};
|
|
357
370
|
|
|
371
|
+
export function __wbg_instanceof_Response_f2cc20d9f7dfd644(arg0) {
|
|
372
|
+
let result;
|
|
373
|
+
try {
|
|
374
|
+
result = arg0 instanceof Response;
|
|
375
|
+
} catch (_) {
|
|
376
|
+
result = false;
|
|
377
|
+
}
|
|
378
|
+
const ret = result;
|
|
379
|
+
return ret;
|
|
380
|
+
};
|
|
381
|
+
|
|
358
382
|
export function __wbg_log_cad59bb680daec67(arg0, arg1, arg2, arg3) {
|
|
359
383
|
console.log(arg0, arg1, arg2, arg3);
|
|
360
384
|
};
|
|
@@ -366,7 +390,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
366
390
|
const a = state0.a;
|
|
367
391
|
state0.a = 0;
|
|
368
392
|
try {
|
|
369
|
-
return
|
|
393
|
+
return __wbg_adapter_86(a, state0.b, arg0, arg1);
|
|
370
394
|
} finally {
|
|
371
395
|
state0.a = a;
|
|
372
396
|
}
|
|
@@ -393,6 +417,16 @@ export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
|
|
393
417
|
return ret;
|
|
394
418
|
};
|
|
395
419
|
|
|
420
|
+
export function __wbg_newwithstrandinit_06c535e0a867c635() { return handleError(function (arg0, arg1, arg2) {
|
|
421
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
422
|
+
return ret;
|
|
423
|
+
}, arguments) };
|
|
424
|
+
|
|
425
|
+
export function __wbg_ok_3aaf32d069979723(arg0) {
|
|
426
|
+
const ret = arg0.ok;
|
|
427
|
+
return ret;
|
|
428
|
+
};
|
|
429
|
+
|
|
396
430
|
export function __wbg_push_737cfc8c1432c2c6(arg0, arg1) {
|
|
397
431
|
const ret = arg0.push(arg1);
|
|
398
432
|
return ret;
|
|
@@ -417,11 +451,27 @@ export function __wbg_resolve_4851785c9c5f573d(arg0) {
|
|
|
417
451
|
return ret;
|
|
418
452
|
};
|
|
419
453
|
|
|
454
|
+
export function __wbg_set_11cd83f45504cedf() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
455
|
+
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
456
|
+
}, arguments) };
|
|
457
|
+
|
|
420
458
|
export function __wbg_set_bb8cecf6a62b9f46() { return handleError(function (arg0, arg1, arg2) {
|
|
421
459
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
422
460
|
return ret;
|
|
423
461
|
}, arguments) };
|
|
424
462
|
|
|
463
|
+
export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
|
464
|
+
arg0.body = arg1;
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
export function __wbg_setmethod_3c5280fe5d890842(arg0, arg1, arg2) {
|
|
468
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
export function __wbg_setmode_5dc300b865044b65(arg0, arg1) {
|
|
472
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
473
|
+
};
|
|
474
|
+
|
|
425
475
|
export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
|
|
426
476
|
const ret = typeof global === 'undefined' ? null : global;
|
|
427
477
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -442,6 +492,24 @@ export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
|
|
|
442
492
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
443
493
|
};
|
|
444
494
|
|
|
495
|
+
export function __wbg_statusText_207754230b39e67c(arg0, arg1) {
|
|
496
|
+
const ret = arg1.statusText;
|
|
497
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
498
|
+
const len1 = WASM_VECTOR_LEN;
|
|
499
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
500
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
export function __wbg_status_f6360336ca686bf0(arg0) {
|
|
504
|
+
const ret = arg0.status;
|
|
505
|
+
return ret;
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
export function __wbg_text_7805bea50de2af49() { return handleError(function (arg0) {
|
|
509
|
+
const ret = arg0.text();
|
|
510
|
+
return ret;
|
|
511
|
+
}, arguments) };
|
|
512
|
+
|
|
445
513
|
export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
|
|
446
514
|
const ret = arg0.then(arg1);
|
|
447
515
|
return ret;
|
|
@@ -477,8 +545,8 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
477
545
|
return ret;
|
|
478
546
|
};
|
|
479
547
|
|
|
480
|
-
export function
|
|
481
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
548
|
+
export function __wbindgen_closure_wrapper5331(arg0, arg1, arg2) {
|
|
549
|
+
const ret = makeMutClosure(arg0, arg1, 572, __wbg_adapter_24);
|
|
482
550
|
return ret;
|
|
483
551
|
};
|
|
484
552
|
|
package/qlue_ls_bg.wasm
CHANGED
|
Binary file
|