qlue-ls 0.5.6 → 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,531 +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
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
47
- ? { register: () => {}, unregister: () => {} }
48
- : new FinalizationRegistry(state => {
49
- wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b)
50
- });
51
-
52
- function makeMutClosure(arg0, arg1, dtor, f) {
53
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
54
- const real = (...args) => {
55
- // First up with a closure we increment the internal reference
56
- // count. This ensures that the Rust closure environment won't
57
- // be deallocated while we're invoking it.
58
- state.cnt++;
59
- const a = state.a;
60
- state.a = 0;
61
- try {
62
- return f(a, state.b, ...args);
63
- } finally {
64
- if (--state.cnt === 0) {
65
- wasm.__wbindgen_export_3.get(state.dtor)(a, state.b);
66
- CLOSURE_DTORS.unregister(state);
67
- } else {
68
- state.a = a;
69
- }
70
- }
71
- };
72
- real.original = state;
73
- CLOSURE_DTORS.register(real, state, state);
74
- return real;
75
- }
76
-
77
- function debugString(val) {
78
- // primitive types
79
- const type = typeof val;
80
- if (type == 'number' || type == 'boolean' || val == null) {
81
- return `${val}`;
82
- }
83
- if (type == 'string') {
84
- return `"${val}"`;
85
- }
86
- if (type == 'symbol') {
87
- const description = val.description;
88
- if (description == null) {
89
- return 'Symbol';
90
- } else {
91
- return `Symbol(${description})`;
92
- }
93
- }
94
- if (type == 'function') {
95
- const name = val.name;
96
- if (typeof name == 'string' && name.length > 0) {
97
- return `Function(${name})`;
98
- } else {
99
- return 'Function';
100
- }
101
- }
102
- // objects
103
- if (Array.isArray(val)) {
104
- const length = val.length;
105
- let debug = '[';
106
- if (length > 0) {
107
- debug += debugString(val[0]);
108
- }
109
- for(let i = 1; i < length; i++) {
110
- debug += ', ' + debugString(val[i]);
111
- }
112
- debug += ']';
113
- return debug;
114
- }
115
- // Test for built-in
116
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
117
- let className;
118
- if (builtInMatches && builtInMatches.length > 1) {
119
- className = builtInMatches[1];
120
- } else {
121
- // Failed to match the standard '[object ClassName]'
122
- return toString.call(val);
123
- }
124
- if (className == 'Object') {
125
- // we're a user defined class or Object
126
- // JSON.stringify avoids problems with cycles, and is generally much
127
- // easier than looping through ownProperties of `val`.
128
- try {
129
- return 'Object(' + JSON.stringify(val) + ')';
130
- } catch (_) {
131
- return 'Object';
132
- }
133
- }
134
- // errors
135
- if (val instanceof Error) {
136
- return `${val.name}: ${val.message}\n${val.stack}`;
137
- }
138
- // TODO we could test for more things here, like `Set`s and `Map`s.
139
- return className;
140
- }
141
-
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
- function takeFromExternrefTable0(idx) {
218
- const value = wasm.__wbindgen_export_2.get(idx);
219
- wasm.__externref_table_dealloc(idx);
220
- return value;
221
- }
222
- /**
223
- * @param {string} text
224
- * @returns {string}
225
- */
226
- export function format_raw(text) {
227
- let deferred3_0;
228
- let deferred3_1;
229
- try {
230
- const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
231
- const len0 = WASM_VECTOR_LEN;
232
- const ret = wasm.format_raw(ptr0, len0);
233
- var ptr2 = ret[0];
234
- var len2 = ret[1];
235
- if (ret[3]) {
236
- ptr2 = 0; len2 = 0;
237
- throw takeFromExternrefTable0(ret[2]);
238
- }
239
- deferred3_0 = ptr2;
240
- deferred3_1 = len2;
241
- return getStringFromWasm0(ptr2, len2);
242
- } finally {
243
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
244
- }
245
- }
246
-
247
- /**
248
- * @param {string} text
249
- * @returns {string}
250
- */
251
- export function determine_operation_type(text) {
252
- let deferred3_0;
253
- let deferred3_1;
254
- try {
255
- const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
256
- const len0 = WASM_VECTOR_LEN;
257
- const ret = wasm.determine_operation_type(ptr0, len0);
258
- var ptr2 = ret[0];
259
- var len2 = ret[1];
260
- if (ret[3]) {
261
- ptr2 = 0; len2 = 0;
262
- throw takeFromExternrefTable0(ret[2]);
263
- }
264
- deferred3_0 = ptr2;
265
- deferred3_1 = len2;
266
- return getStringFromWasm0(ptr2, len2);
267
- } finally {
268
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
269
- }
270
- }
271
-
272
- /**
273
- * @param {string} input
274
- * @param {number} offset
275
- * @returns {any}
276
- */
277
- export function get_parse_tree(input, offset) {
278
- const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
279
- const len0 = WASM_VECTOR_LEN;
280
- const ret = wasm.get_parse_tree(ptr0, len0, offset);
281
- return ret;
282
- }
283
-
284
- function __wbg_adapter_24(arg0, arg1, arg2) {
285
- wasm.closure272_externref_shim(arg0, arg1, arg2);
286
- }
287
-
288
- function __wbg_adapter_62(arg0, arg1, arg2, arg3) {
289
- wasm.closure284_externref_shim(arg0, arg1, arg2, arg3);
290
- }
291
-
292
- const ServerFinalization = (typeof FinalizationRegistry === 'undefined')
293
- ? { register: () => {}, unregister: () => {} }
294
- : new FinalizationRegistry(ptr => wasm.__wbg_server_free(ptr >>> 0, 1));
295
-
296
- export class Server {
297
-
298
- static __wrap(ptr) {
299
- ptr = ptr >>> 0;
300
- const obj = Object.create(Server.prototype);
301
- obj.__wbg_ptr = ptr;
302
- ServerFinalization.register(obj, obj.__wbg_ptr, obj);
303
- return obj;
304
- }
305
-
306
- __destroy_into_raw() {
307
- const ptr = this.__wbg_ptr;
308
- this.__wbg_ptr = 0;
309
- ServerFinalization.unregister(this);
310
- return ptr;
311
- }
312
-
313
- free() {
314
- const ptr = this.__destroy_into_raw();
315
- wasm.__wbg_server_free(ptr, 0);
316
- }
317
- /**
318
- * @param {ReadableStreamDefaultReader} reader
319
- * @returns {Promise<void>}
320
- */
321
- listen(reader) {
322
- const ret = wasm.server_listen(this.__wbg_ptr, reader);
323
- return ret;
324
- }
325
- }
326
-
327
- export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
328
- const ret = arg0.call(arg1);
329
- return ret;
330
- }, arguments) };
331
-
332
- export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
333
- const ret = arg0.call(arg1, arg2);
334
- return ret;
335
- }, arguments) };
336
-
337
- export function __wbg_debug_e17b51583ca6a632(arg0, arg1, arg2, arg3) {
338
- console.debug(arg0, arg1, arg2, arg3);
339
- };
340
-
341
- export function __wbg_error_524f506f44df1645(arg0) {
342
- console.error(arg0);
343
- };
344
-
345
- export function __wbg_error_80de38b3f7cc3c3c(arg0, arg1, arg2, arg3) {
346
- console.error(arg0, arg1, arg2, arg3);
347
- };
348
-
349
- export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
350
- const ret = Reflect.get(arg0, arg1);
351
- return ret;
352
- }, arguments) };
353
-
354
- export function __wbg_info_033d8b8a0838f1d3(arg0, arg1, arg2, arg3) {
355
- console.info(arg0, arg1, arg2, arg3);
356
- };
357
-
358
- export function __wbg_log_cad59bb680daec67(arg0, arg1, arg2, arg3) {
359
- console.log(arg0, arg1, arg2, arg3);
360
- };
361
-
362
- export function __wbg_new_23a2665fac83c611(arg0, arg1) {
363
- try {
364
- var state0 = {a: arg0, b: arg1};
365
- var cb0 = (arg0, arg1) => {
366
- const a = state0.a;
367
- state0.a = 0;
368
- try {
369
- return __wbg_adapter_62(a, state0.b, arg0, arg1);
370
- } finally {
371
- state0.a = a;
372
- }
373
- };
374
- const ret = new Promise(cb0);
375
- return ret;
376
- } finally {
377
- state0.a = state0.b = 0;
378
- }
379
- };
380
-
381
- export function __wbg_new_405e22f390576ce2() {
382
- const ret = new Object();
383
- return ret;
384
- };
385
-
386
- export function __wbg_new_78feb108b6472713() {
387
- const ret = new Array();
388
- return ret;
389
- };
390
-
391
- export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
392
- const ret = new Function(getStringFromWasm0(arg0, arg1));
393
- return ret;
394
- };
395
-
396
- export function __wbg_push_737cfc8c1432c2c6(arg0, arg1) {
397
- const ret = arg0.push(arg1);
398
- return ret;
399
- };
400
-
401
- export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
402
- queueMicrotask(arg0);
403
- };
404
-
405
- export function __wbg_queueMicrotask_d3219def82552485(arg0) {
406
- const ret = arg0.queueMicrotask;
407
- return ret;
408
- };
409
-
410
- export function __wbg_read_a2434af1186cb56c(arg0) {
411
- const ret = arg0.read();
412
- return ret;
413
- };
414
-
415
- export function __wbg_resolve_4851785c9c5f573d(arg0) {
416
- const ret = Promise.resolve(arg0);
417
- return ret;
418
- };
419
-
420
- export function __wbg_set_bb8cecf6a62b9f46() { return handleError(function (arg0, arg1, arg2) {
421
- const ret = Reflect.set(arg0, arg1, arg2);
422
- return ret;
423
- }, arguments) };
424
-
425
- export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
426
- const ret = typeof global === 'undefined' ? null : global;
427
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
428
- };
429
-
430
- export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
431
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
432
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
433
- };
434
-
435
- export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
436
- const ret = typeof self === 'undefined' ? null : self;
437
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
438
- };
439
-
440
- export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
441
- const ret = typeof window === 'undefined' ? null : window;
442
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
443
- };
444
-
445
- export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
446
- const ret = arg0.then(arg1);
447
- return ret;
448
- };
449
-
450
- export function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
451
- const ret = arg0.then(arg1, arg2);
452
- return ret;
453
- };
454
-
455
- export function __wbg_warn_aaf1f4664a035bd6(arg0, arg1, arg2, arg3) {
456
- console.warn(arg0, arg1, arg2, arg3);
457
- };
458
-
459
- export function __wbg_write_311434e30ee214e5(arg0, arg1) {
460
- const ret = arg0.write(arg1);
461
- return ret;
462
- };
463
-
464
- export function __wbindgen_boolean_get(arg0) {
465
- const v = arg0;
466
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
467
- return ret;
468
- };
469
-
470
- export function __wbindgen_cb_drop(arg0) {
471
- const obj = arg0.original;
472
- if (obj.cnt-- == 1) {
473
- obj.a = 0;
474
- return true;
475
- }
476
- const ret = false;
477
- return ret;
478
- };
479
-
480
- export function __wbindgen_closure_wrapper3521(arg0, arg1, arg2) {
481
- const ret = makeMutClosure(arg0, arg1, 273, __wbg_adapter_24);
482
- return ret;
483
- };
484
-
485
- export function __wbindgen_debug_string(arg0, arg1) {
486
- const ret = debugString(arg1);
487
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
488
- const len1 = WASM_VECTOR_LEN;
489
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
490
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
491
- };
492
-
493
- export function __wbindgen_init_externref_table() {
494
- const table = wasm.__wbindgen_export_2;
495
- const offset = table.grow(4);
496
- table.set(0, undefined);
497
- table.set(offset + 0, undefined);
498
- table.set(offset + 1, null);
499
- table.set(offset + 2, true);
500
- table.set(offset + 3, false);
501
- ;
502
- };
503
-
504
- export function __wbindgen_is_function(arg0) {
505
- const ret = typeof(arg0) === 'function';
506
- return ret;
507
- };
508
-
509
- export function __wbindgen_is_undefined(arg0) {
510
- const ret = arg0 === undefined;
511
- return ret;
512
- };
513
-
514
- export function __wbindgen_string_get(arg0, arg1) {
515
- const obj = arg1;
516
- const ret = typeof(obj) === 'string' ? obj : undefined;
517
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
518
- var len1 = WASM_VECTOR_LEN;
519
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
520
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
521
- };
522
-
523
- export function __wbindgen_string_new(arg0, arg1) {
524
- const ret = getStringFromWasm0(arg0, arg1);
525
- return ret;
526
- };
527
-
528
- export function __wbindgen_throw(arg0, arg1) {
529
- throw new Error(getStringFromWasm0(arg0, arg1));
530
- };
531
-