qlue-ls 0.5.7 → 0.5.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.
package/qlue_ls_bg.js DELETED
@@ -1,599 +0,0 @@
1
- let wasm;
2
- export function __wbg_set_wasm(val) {
3
- wasm = val;
4
- }
5
-
6
-
7
- function addToExternrefTable0(obj) {
8
- const idx = wasm.__externref_table_alloc();
9
- wasm.__wbindgen_export_2.set(idx, obj);
10
- return idx;
11
- }
12
-
13
- function handleError(f, args) {
14
- try {
15
- return f.apply(this, args);
16
- } catch (e) {
17
- const idx = addToExternrefTable0(e);
18
- wasm.__wbindgen_exn_store(idx);
19
- }
20
- }
21
-
22
- const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
23
-
24
- let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
25
-
26
- cachedTextDecoder.decode();
27
-
28
- let cachedUint8ArrayMemory0 = null;
29
-
30
- function getUint8ArrayMemory0() {
31
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
32
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
33
- }
34
- return cachedUint8ArrayMemory0;
35
- }
36
-
37
- function getStringFromWasm0(ptr, len) {
38
- ptr = ptr >>> 0;
39
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
40
- }
41
-
42
- function isLikeNone(x) {
43
- return x === undefined || x === null;
44
- }
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
-
113
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
114
- ? { register: () => {}, unregister: () => {} }
115
- : new FinalizationRegistry(state => {
116
- wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b)
117
- });
118
-
119
- function makeMutClosure(arg0, arg1, dtor, f) {
120
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
121
- const real = (...args) => {
122
- // First up with a closure we increment the internal reference
123
- // count. This ensures that the Rust closure environment won't
124
- // be deallocated while we're invoking it.
125
- state.cnt++;
126
- const a = state.a;
127
- state.a = 0;
128
- try {
129
- return f(a, state.b, ...args);
130
- } finally {
131
- if (--state.cnt === 0) {
132
- wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
133
- CLOSURE_DTORS.unregister(state);
134
- } else {
135
- state.a = a;
136
- }
137
- }
138
- };
139
- real.original = state;
140
- CLOSURE_DTORS.register(real, state, state);
141
- return real;
142
- }
143
-
144
- function debugString(val) {
145
- // primitive types
146
- const type = typeof val;
147
- if (type == 'number' || type == 'boolean' || val == null) {
148
- return `${val}`;
149
- }
150
- if (type == 'string') {
151
- return `"${val}"`;
152
- }
153
- if (type == 'symbol') {
154
- const description = val.description;
155
- if (description == null) {
156
- return 'Symbol';
157
- } else {
158
- return `Symbol(${description})`;
159
- }
160
- }
161
- if (type == 'function') {
162
- const name = val.name;
163
- if (typeof name == 'string' && name.length > 0) {
164
- return `Function(${name})`;
165
- } else {
166
- return 'Function';
167
- }
168
- }
169
- // objects
170
- if (Array.isArray(val)) {
171
- const length = val.length;
172
- let debug = '[';
173
- if (length > 0) {
174
- debug += debugString(val[0]);
175
- }
176
- for(let i = 1; i < length; i++) {
177
- debug += ', ' + debugString(val[i]);
178
- }
179
- debug += ']';
180
- return debug;
181
- }
182
- // Test for built-in
183
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
184
- let className;
185
- if (builtInMatches && builtInMatches.length > 1) {
186
- className = builtInMatches[1];
187
- } else {
188
- // Failed to match the standard '[object ClassName]'
189
- return toString.call(val);
190
- }
191
- if (className == 'Object') {
192
- // we're a user defined class or Object
193
- // JSON.stringify avoids problems with cycles, and is generally much
194
- // easier than looping through ownProperties of `val`.
195
- try {
196
- return 'Object(' + JSON.stringify(val) + ')';
197
- } catch (_) {
198
- return 'Object';
199
- }
200
- }
201
- // errors
202
- if (val instanceof Error) {
203
- return `${val.name}: ${val.message}\n${val.stack}`;
204
- }
205
- // TODO we could test for more things here, like `Set`s and `Map`s.
206
- return className;
207
- }
208
-
209
- function takeFromExternrefTable0(idx) {
210
- const value = wasm.__wbindgen_export_2.get(idx);
211
- wasm.__externref_table_dealloc(idx);
212
- return value;
213
- }
214
- /**
215
- * @param {string} text
216
- * @returns {string}
217
- */
218
- export function format_raw(text) {
219
- let deferred3_0;
220
- let deferred3_1;
221
- try {
222
- const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
223
- const len0 = WASM_VECTOR_LEN;
224
- const ret = wasm.format_raw(ptr0, len0);
225
- var ptr2 = ret[0];
226
- var len2 = ret[1];
227
- if (ret[3]) {
228
- ptr2 = 0; len2 = 0;
229
- throw takeFromExternrefTable0(ret[2]);
230
- }
231
- deferred3_0 = ptr2;
232
- deferred3_1 = len2;
233
- return getStringFromWasm0(ptr2, len2);
234
- } finally {
235
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
236
- }
237
- }
238
-
239
- /**
240
- * @param {string} text
241
- * @returns {string}
242
- */
243
- export function determine_operation_type(text) {
244
- let deferred3_0;
245
- let deferred3_1;
246
- try {
247
- const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
248
- const len0 = WASM_VECTOR_LEN;
249
- const ret = wasm.determine_operation_type(ptr0, len0);
250
- var ptr2 = ret[0];
251
- var len2 = ret[1];
252
- if (ret[3]) {
253
- ptr2 = 0; len2 = 0;
254
- throw takeFromExternrefTable0(ret[2]);
255
- }
256
- deferred3_0 = ptr2;
257
- deferred3_1 = len2;
258
- return getStringFromWasm0(ptr2, len2);
259
- } finally {
260
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
261
- }
262
- }
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
-
273
- /**
274
- * @param {string} input
275
- * @param {number} offset
276
- * @returns {any}
277
- */
278
- export function get_parse_tree(input, offset) {
279
- const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
280
- const len0 = WASM_VECTOR_LEN;
281
- const ret = wasm.get_parse_tree(ptr0, len0, offset);
282
- return ret;
283
- }
284
-
285
- function __wbg_adapter_24(arg0, arg1, arg2) {
286
- wasm.closure571_externref_shim(arg0, arg1, arg2);
287
- }
288
-
289
- function __wbg_adapter_86(arg0, arg1, arg2, arg3) {
290
- wasm.closure583_externref_shim(arg0, arg1, arg2, arg3);
291
- }
292
-
293
- const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
294
-
295
- const ServerFinalization = (typeof FinalizationRegistry === 'undefined')
296
- ? { register: () => {}, unregister: () => {} }
297
- : new FinalizationRegistry(ptr => wasm.__wbg_server_free(ptr >>> 0, 1));
298
-
299
- export class Server {
300
-
301
- static __wrap(ptr) {
302
- ptr = ptr >>> 0;
303
- const obj = Object.create(Server.prototype);
304
- obj.__wbg_ptr = ptr;
305
- ServerFinalization.register(obj, obj.__wbg_ptr, obj);
306
- return obj;
307
- }
308
-
309
- __destroy_into_raw() {
310
- const ptr = this.__wbg_ptr;
311
- this.__wbg_ptr = 0;
312
- ServerFinalization.unregister(this);
313
- return ptr;
314
- }
315
-
316
- free() {
317
- const ptr = this.__destroy_into_raw();
318
- wasm.__wbg_server_free(ptr, 0);
319
- }
320
- /**
321
- * @param {ReadableStreamDefaultReader} reader
322
- * @returns {Promise<void>}
323
- */
324
- listen(reader) {
325
- const ret = wasm.server_listen(this.__wbg_ptr, reader);
326
- return ret;
327
- }
328
- }
329
-
330
- export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
331
- const ret = arg0.call(arg1);
332
- return ret;
333
- }, arguments) };
334
-
335
- export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
336
- const ret = arg0.call(arg1, arg2);
337
- return ret;
338
- }, arguments) };
339
-
340
- export function __wbg_debug_e17b51583ca6a632(arg0, arg1, arg2, arg3) {
341
- console.debug(arg0, arg1, arg2, arg3);
342
- };
343
-
344
- export function __wbg_error_524f506f44df1645(arg0) {
345
- console.error(arg0);
346
- };
347
-
348
- export function __wbg_error_80de38b3f7cc3c3c(arg0, arg1, arg2, arg3) {
349
- console.error(arg0, arg1, arg2, arg3);
350
- };
351
-
352
- export function __wbg_fetch_509096533071c657(arg0, arg1) {
353
- const ret = arg0.fetch(arg1);
354
- return ret;
355
- };
356
-
357
- export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
358
- const ret = Reflect.get(arg0, arg1);
359
- return ret;
360
- }, arguments) };
361
-
362
- export function __wbg_headers_7852a8ea641c1379(arg0) {
363
- const ret = arg0.headers;
364
- return ret;
365
- };
366
-
367
- export function __wbg_info_033d8b8a0838f1d3(arg0, arg1, arg2, arg3) {
368
- console.info(arg0, arg1, arg2, arg3);
369
- };
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
-
382
- export function __wbg_log_cad59bb680daec67(arg0, arg1, arg2, arg3) {
383
- console.log(arg0, arg1, arg2, arg3);
384
- };
385
-
386
- export function __wbg_new_23a2665fac83c611(arg0, arg1) {
387
- try {
388
- var state0 = {a: arg0, b: arg1};
389
- var cb0 = (arg0, arg1) => {
390
- const a = state0.a;
391
- state0.a = 0;
392
- try {
393
- return __wbg_adapter_86(a, state0.b, arg0, arg1);
394
- } finally {
395
- state0.a = a;
396
- }
397
- };
398
- const ret = new Promise(cb0);
399
- return ret;
400
- } finally {
401
- state0.a = state0.b = 0;
402
- }
403
- };
404
-
405
- export function __wbg_new_405e22f390576ce2() {
406
- const ret = new Object();
407
- return ret;
408
- };
409
-
410
- export function __wbg_new_78feb108b6472713() {
411
- const ret = new Array();
412
- return ret;
413
- };
414
-
415
- export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
416
- const ret = new Function(getStringFromWasm0(arg0, arg1));
417
- return ret;
418
- };
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
-
430
- export function __wbg_push_737cfc8c1432c2c6(arg0, arg1) {
431
- const ret = arg0.push(arg1);
432
- return ret;
433
- };
434
-
435
- export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
436
- queueMicrotask(arg0);
437
- };
438
-
439
- export function __wbg_queueMicrotask_d3219def82552485(arg0) {
440
- const ret = arg0.queueMicrotask;
441
- return ret;
442
- };
443
-
444
- export function __wbg_read_a2434af1186cb56c(arg0) {
445
- const ret = arg0.read();
446
- return ret;
447
- };
448
-
449
- export function __wbg_resolve_4851785c9c5f573d(arg0) {
450
- const ret = Promise.resolve(arg0);
451
- return ret;
452
- };
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
-
458
- export function __wbg_set_bb8cecf6a62b9f46() { return handleError(function (arg0, arg1, arg2) {
459
- const ret = Reflect.set(arg0, arg1, arg2);
460
- return ret;
461
- }, arguments) };
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
-
475
- export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
476
- const ret = typeof global === 'undefined' ? null : global;
477
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
478
- };
479
-
480
- export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
481
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
482
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
483
- };
484
-
485
- export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
486
- const ret = typeof self === 'undefined' ? null : self;
487
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
488
- };
489
-
490
- export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
491
- const ret = typeof window === 'undefined' ? null : window;
492
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
493
- };
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
-
513
- export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
514
- const ret = arg0.then(arg1);
515
- return ret;
516
- };
517
-
518
- export function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
519
- const ret = arg0.then(arg1, arg2);
520
- return ret;
521
- };
522
-
523
- export function __wbg_warn_aaf1f4664a035bd6(arg0, arg1, arg2, arg3) {
524
- console.warn(arg0, arg1, arg2, arg3);
525
- };
526
-
527
- export function __wbg_write_311434e30ee214e5(arg0, arg1) {
528
- const ret = arg0.write(arg1);
529
- return ret;
530
- };
531
-
532
- export function __wbindgen_boolean_get(arg0) {
533
- const v = arg0;
534
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
535
- return ret;
536
- };
537
-
538
- export function __wbindgen_cb_drop(arg0) {
539
- const obj = arg0.original;
540
- if (obj.cnt-- == 1) {
541
- obj.a = 0;
542
- return true;
543
- }
544
- const ret = false;
545
- return ret;
546
- };
547
-
548
- export function __wbindgen_closure_wrapper5331(arg0, arg1, arg2) {
549
- const ret = makeMutClosure(arg0, arg1, 572, __wbg_adapter_24);
550
- return ret;
551
- };
552
-
553
- export function __wbindgen_debug_string(arg0, arg1) {
554
- const ret = debugString(arg1);
555
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
556
- const len1 = WASM_VECTOR_LEN;
557
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
558
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
559
- };
560
-
561
- export function __wbindgen_init_externref_table() {
562
- const table = wasm.__wbindgen_export_2;
563
- const offset = table.grow(4);
564
- table.set(0, undefined);
565
- table.set(offset + 0, undefined);
566
- table.set(offset + 1, null);
567
- table.set(offset + 2, true);
568
- table.set(offset + 3, false);
569
- ;
570
- };
571
-
572
- export function __wbindgen_is_function(arg0) {
573
- const ret = typeof(arg0) === 'function';
574
- return ret;
575
- };
576
-
577
- export function __wbindgen_is_undefined(arg0) {
578
- const ret = arg0 === undefined;
579
- return ret;
580
- };
581
-
582
- export function __wbindgen_string_get(arg0, arg1) {
583
- const obj = arg1;
584
- const ret = typeof(obj) === 'string' ? obj : undefined;
585
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
586
- var len1 = WASM_VECTOR_LEN;
587
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
588
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
589
- };
590
-
591
- export function __wbindgen_string_new(arg0, arg1) {
592
- const ret = getStringFromWasm0(arg0, arg1);
593
- return ret;
594
- };
595
-
596
- export function __wbindgen_throw(arg0, arg1) {
597
- throw new Error(getStringFromWasm0(arg0, arg1));
598
- };
599
-