qsharp-lang 1.0.18-dev → 1.0.20-rc
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/compiler/compiler.d.ts +0 -6
- package/dist/compiler/compiler.js +0 -3
- package/dist/katas-content.generated.js +25 -25
- package/dist/language-service/language-service.d.ts +5 -3
- package/dist/language-service/language-service.js +41 -1
- package/dist/language-service/worker-proxy.js +1 -0
- package/lib/node/qsc_wasm.cjs +245 -191
- package/lib/node/qsc_wasm.d.cts +36 -29
- package/lib/node/qsc_wasm_bg.wasm +0 -0
- package/lib/web/qsc_wasm.d.ts +47 -39
- package/lib/web/qsc_wasm.js +256 -199
- package/lib/web/qsc_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/lib/node/qsc_wasm.cjs
CHANGED
|
@@ -23,6 +23,15 @@ function takeObject(idx) {
|
|
|
23
23
|
return ret;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
function addHeapObject(obj) {
|
|
27
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
28
|
+
const idx = heap_next;
|
|
29
|
+
heap_next = heap[idx];
|
|
30
|
+
|
|
31
|
+
heap[idx] = obj;
|
|
32
|
+
return idx;
|
|
33
|
+
}
|
|
34
|
+
|
|
26
35
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
27
36
|
|
|
28
37
|
cachedTextDecoder.decode();
|
|
@@ -37,18 +46,10 @@ function getUint8Memory0() {
|
|
|
37
46
|
}
|
|
38
47
|
|
|
39
48
|
function getStringFromWasm0(ptr, len) {
|
|
49
|
+
ptr = ptr >>> 0;
|
|
40
50
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
41
51
|
}
|
|
42
52
|
|
|
43
|
-
function addHeapObject(obj) {
|
|
44
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
45
|
-
const idx = heap_next;
|
|
46
|
-
heap_next = heap[idx];
|
|
47
|
-
|
|
48
|
-
heap[idx] = obj;
|
|
49
|
-
return idx;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
53
|
let WASM_VECTOR_LEN = 0;
|
|
53
54
|
|
|
54
55
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -70,14 +71,14 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
70
71
|
|
|
71
72
|
if (realloc === undefined) {
|
|
72
73
|
const buf = cachedTextEncoder.encode(arg);
|
|
73
|
-
const ptr = malloc(buf.length);
|
|
74
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
74
75
|
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
75
76
|
WASM_VECTOR_LEN = buf.length;
|
|
76
77
|
return ptr;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
let len = arg.length;
|
|
80
|
-
let ptr = malloc(len);
|
|
81
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
81
82
|
|
|
82
83
|
const mem = getUint8Memory0();
|
|
83
84
|
|
|
@@ -93,7 +94,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
93
94
|
if (offset !== 0) {
|
|
94
95
|
arg = arg.slice(offset);
|
|
95
96
|
}
|
|
96
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
|
97
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
97
98
|
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
98
99
|
const ret = encodeString(arg, view);
|
|
99
100
|
|
|
@@ -190,19 +191,83 @@ function debugString(val) {
|
|
|
190
191
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
191
192
|
return className;
|
|
192
193
|
}
|
|
194
|
+
|
|
195
|
+
let stack_pointer = 128;
|
|
196
|
+
|
|
197
|
+
function addBorrowedObject(obj) {
|
|
198
|
+
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
199
|
+
heap[--stack_pointer] = obj;
|
|
200
|
+
return stack_pointer;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
let cachedUint32Memory0 = null;
|
|
204
|
+
|
|
205
|
+
function getUint32Memory0() {
|
|
206
|
+
if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
|
|
207
|
+
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
208
|
+
}
|
|
209
|
+
return cachedUint32Memory0;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
213
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
214
|
+
getUint32Memory0().set(arg, ptr / 4);
|
|
215
|
+
WASM_VECTOR_LEN = arg.length;
|
|
216
|
+
return ptr;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
220
|
+
ptr = ptr >>> 0;
|
|
221
|
+
const mem = getUint32Memory0();
|
|
222
|
+
const slice = mem.subarray(ptr / 4, ptr / 4 + len);
|
|
223
|
+
const result = [];
|
|
224
|
+
for (let i = 0; i < slice.length; i++) {
|
|
225
|
+
result.push(takeObject(slice[i]));
|
|
226
|
+
}
|
|
227
|
+
return result;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* @param {any} callback
|
|
231
|
+
* @param {number} level
|
|
232
|
+
*/
|
|
233
|
+
module.exports.initLogging = function(callback, level) {
|
|
234
|
+
try {
|
|
235
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
236
|
+
wasm.initLogging(retptr, addHeapObject(callback), level);
|
|
237
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
238
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
239
|
+
if (r1) {
|
|
240
|
+
throw takeObject(r0);
|
|
241
|
+
}
|
|
242
|
+
} finally {
|
|
243
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @param {number} level
|
|
249
|
+
*/
|
|
250
|
+
module.exports.setLogLevel = function(level) {
|
|
251
|
+
wasm.setLogLevel(level);
|
|
252
|
+
};
|
|
253
|
+
|
|
193
254
|
/**
|
|
194
255
|
* @returns {string}
|
|
195
256
|
*/
|
|
196
257
|
module.exports.git_hash = function() {
|
|
258
|
+
let deferred1_0;
|
|
259
|
+
let deferred1_1;
|
|
197
260
|
try {
|
|
198
261
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
199
262
|
wasm.git_hash(retptr);
|
|
200
263
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
201
264
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
265
|
+
deferred1_0 = r0;
|
|
266
|
+
deferred1_1 = r1;
|
|
202
267
|
return getStringFromWasm0(r0, r1);
|
|
203
268
|
} finally {
|
|
204
269
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
205
|
-
wasm.__wbindgen_export_2(
|
|
270
|
+
wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
|
|
206
271
|
}
|
|
207
272
|
};
|
|
208
273
|
|
|
@@ -211,6 +276,8 @@ module.exports.git_hash = function() {
|
|
|
211
276
|
* @returns {string}
|
|
212
277
|
*/
|
|
213
278
|
module.exports.get_qir = function(code) {
|
|
279
|
+
let deferred3_0;
|
|
280
|
+
let deferred3_1;
|
|
214
281
|
try {
|
|
215
282
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
216
283
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
@@ -220,16 +287,18 @@ module.exports.get_qir = function(code) {
|
|
|
220
287
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
221
288
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
222
289
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
223
|
-
var
|
|
224
|
-
var
|
|
290
|
+
var ptr2 = r0;
|
|
291
|
+
var len2 = r1;
|
|
225
292
|
if (r3) {
|
|
226
|
-
|
|
293
|
+
ptr2 = 0; len2 = 0;
|
|
227
294
|
throw takeObject(r2);
|
|
228
295
|
}
|
|
229
|
-
|
|
296
|
+
deferred3_0 = ptr2;
|
|
297
|
+
deferred3_1 = len2;
|
|
298
|
+
return getStringFromWasm0(ptr2, len2);
|
|
230
299
|
} finally {
|
|
231
300
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
232
|
-
wasm.__wbindgen_export_2(
|
|
301
|
+
wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
|
|
233
302
|
}
|
|
234
303
|
};
|
|
235
304
|
|
|
@@ -245,12 +314,12 @@ module.exports.get_library_source_content = function(name) {
|
|
|
245
314
|
wasm.get_library_source_content(retptr, ptr0, len0);
|
|
246
315
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
247
316
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
248
|
-
let
|
|
317
|
+
let v2;
|
|
249
318
|
if (r0 !== 0) {
|
|
250
|
-
|
|
319
|
+
v2 = getStringFromWasm0(r0, r1).slice();
|
|
251
320
|
wasm.__wbindgen_export_2(r0, r1 * 1);
|
|
252
321
|
}
|
|
253
|
-
return
|
|
322
|
+
return v2;
|
|
254
323
|
} finally {
|
|
255
324
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
256
325
|
}
|
|
@@ -261,6 +330,8 @@ module.exports.get_library_source_content = function(name) {
|
|
|
261
330
|
* @returns {string}
|
|
262
331
|
*/
|
|
263
332
|
module.exports.get_hir = function(code) {
|
|
333
|
+
let deferred2_0;
|
|
334
|
+
let deferred2_1;
|
|
264
335
|
try {
|
|
265
336
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
266
337
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
@@ -268,20 +339,15 @@ module.exports.get_hir = function(code) {
|
|
|
268
339
|
wasm.get_hir(retptr, ptr0, len0);
|
|
269
340
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
270
341
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
342
|
+
deferred2_0 = r0;
|
|
343
|
+
deferred2_1 = r1;
|
|
271
344
|
return getStringFromWasm0(r0, r1);
|
|
272
345
|
} finally {
|
|
273
346
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
274
|
-
wasm.__wbindgen_export_2(
|
|
347
|
+
wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
|
|
275
348
|
}
|
|
276
349
|
};
|
|
277
350
|
|
|
278
|
-
let stack_pointer = 128;
|
|
279
|
-
|
|
280
|
-
function addBorrowedObject(obj) {
|
|
281
|
-
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
282
|
-
heap[--stack_pointer] = obj;
|
|
283
|
-
return stack_pointer;
|
|
284
|
-
}
|
|
285
351
|
/**
|
|
286
352
|
* @param {string} code
|
|
287
353
|
* @param {string} expr
|
|
@@ -327,46 +393,6 @@ module.exports.check_exercise_solution = function(solution_code, exercise_source
|
|
|
327
393
|
}
|
|
328
394
|
};
|
|
329
395
|
|
|
330
|
-
let cachedUint32Memory0 = null;
|
|
331
|
-
|
|
332
|
-
function getUint32Memory0() {
|
|
333
|
-
if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
|
|
334
|
-
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
|
335
|
-
}
|
|
336
|
-
return cachedUint32Memory0;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
function passArray32ToWasm0(arg, malloc) {
|
|
340
|
-
const ptr = malloc(arg.length * 4);
|
|
341
|
-
getUint32Memory0().set(arg, ptr / 4);
|
|
342
|
-
WASM_VECTOR_LEN = arg.length;
|
|
343
|
-
return ptr;
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* @param {any} callback
|
|
347
|
-
* @param {number} level
|
|
348
|
-
*/
|
|
349
|
-
module.exports.initLogging = function(callback, level) {
|
|
350
|
-
try {
|
|
351
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
352
|
-
wasm.initLogging(retptr, addHeapObject(callback), level);
|
|
353
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
354
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
355
|
-
if (r1) {
|
|
356
|
-
throw takeObject(r0);
|
|
357
|
-
}
|
|
358
|
-
} finally {
|
|
359
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* @param {number} level
|
|
365
|
-
*/
|
|
366
|
-
module.exports.setLogLevel = function(level) {
|
|
367
|
-
wasm.setLogLevel(level);
|
|
368
|
-
};
|
|
369
|
-
|
|
370
396
|
function handleError(f, args) {
|
|
371
397
|
try {
|
|
372
398
|
return f.apply(this, args);
|
|
@@ -374,10 +400,6 @@ function handleError(f, args) {
|
|
|
374
400
|
wasm.__wbindgen_export_3(addHeapObject(e));
|
|
375
401
|
}
|
|
376
402
|
}
|
|
377
|
-
|
|
378
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
379
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
380
|
-
}
|
|
381
403
|
/**
|
|
382
404
|
*/
|
|
383
405
|
module.exports.StepResultId = Object.freeze({ BreakpointHit:0,"0":"BreakpointHit",Next:1,"1":"Next",StepIn:2,"2":"StepIn",StepOut:3,"3":"StepOut",Return:4,"4":"Return", });
|
|
@@ -386,15 +408,16 @@ module.exports.StepResultId = Object.freeze({ BreakpointHit:0,"0":"BreakpointHit
|
|
|
386
408
|
class DebugService {
|
|
387
409
|
|
|
388
410
|
static __wrap(ptr) {
|
|
411
|
+
ptr = ptr >>> 0;
|
|
389
412
|
const obj = Object.create(DebugService.prototype);
|
|
390
|
-
obj.
|
|
413
|
+
obj.__wbg_ptr = ptr;
|
|
391
414
|
|
|
392
415
|
return obj;
|
|
393
416
|
}
|
|
394
417
|
|
|
395
418
|
__destroy_into_raw() {
|
|
396
|
-
const ptr = this.
|
|
397
|
-
this.
|
|
419
|
+
const ptr = this.__wbg_ptr;
|
|
420
|
+
this.__wbg_ptr = 0;
|
|
398
421
|
|
|
399
422
|
return ptr;
|
|
400
423
|
}
|
|
@@ -416,6 +439,8 @@ class DebugService {
|
|
|
416
439
|
* @returns {string}
|
|
417
440
|
*/
|
|
418
441
|
load_source(path, source, entry) {
|
|
442
|
+
let deferred4_0;
|
|
443
|
+
let deferred4_1;
|
|
419
444
|
try {
|
|
420
445
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
421
446
|
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
@@ -424,27 +449,29 @@ class DebugService {
|
|
|
424
449
|
const len1 = WASM_VECTOR_LEN;
|
|
425
450
|
var ptr2 = isLikeNone(entry) ? 0 : passStringToWasm0(entry, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
426
451
|
var len2 = WASM_VECTOR_LEN;
|
|
427
|
-
wasm.debugservice_load_source(retptr, this.
|
|
452
|
+
wasm.debugservice_load_source(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
428
453
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
429
454
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
455
|
+
deferred4_0 = r0;
|
|
456
|
+
deferred4_1 = r1;
|
|
430
457
|
return getStringFromWasm0(r0, r1);
|
|
431
458
|
} finally {
|
|
432
459
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
433
|
-
wasm.__wbindgen_export_2(
|
|
460
|
+
wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
|
|
434
461
|
}
|
|
435
462
|
}
|
|
436
463
|
/**
|
|
437
464
|
* @returns {IQuantumStateList}
|
|
438
465
|
*/
|
|
439
466
|
capture_quantum_state() {
|
|
440
|
-
const ret = wasm.debugservice_capture_quantum_state(this.
|
|
467
|
+
const ret = wasm.debugservice_capture_quantum_state(this.__wbg_ptr);
|
|
441
468
|
return takeObject(ret);
|
|
442
469
|
}
|
|
443
470
|
/**
|
|
444
471
|
* @returns {IStackFrameList}
|
|
445
472
|
*/
|
|
446
473
|
get_stack_frames() {
|
|
447
|
-
const ret = wasm.debugservice_get_stack_frames(this.
|
|
474
|
+
const ret = wasm.debugservice_get_stack_frames(this.__wbg_ptr);
|
|
448
475
|
return takeObject(ret);
|
|
449
476
|
}
|
|
450
477
|
/**
|
|
@@ -457,7 +484,7 @@ class DebugService {
|
|
|
457
484
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
458
485
|
const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_export_0);
|
|
459
486
|
const len0 = WASM_VECTOR_LEN;
|
|
460
|
-
wasm.debugservice_eval_next(retptr, this.
|
|
487
|
+
wasm.debugservice_eval_next(retptr, this.__wbg_ptr, addBorrowedObject(event_cb), ptr0, len0);
|
|
461
488
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
462
489
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
463
490
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -480,7 +507,7 @@ class DebugService {
|
|
|
480
507
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
481
508
|
const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_export_0);
|
|
482
509
|
const len0 = WASM_VECTOR_LEN;
|
|
483
|
-
wasm.debugservice_eval_continue(retptr, this.
|
|
510
|
+
wasm.debugservice_eval_continue(retptr, this.__wbg_ptr, addBorrowedObject(event_cb), ptr0, len0);
|
|
484
511
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
485
512
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
486
513
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -503,7 +530,7 @@ class DebugService {
|
|
|
503
530
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
504
531
|
const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_export_0);
|
|
505
532
|
const len0 = WASM_VECTOR_LEN;
|
|
506
|
-
wasm.debugservice_eval_step_in(retptr, this.
|
|
533
|
+
wasm.debugservice_eval_step_in(retptr, this.__wbg_ptr, addBorrowedObject(event_cb), ptr0, len0);
|
|
507
534
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
508
535
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
509
536
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -526,7 +553,7 @@ class DebugService {
|
|
|
526
553
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
527
554
|
const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_export_0);
|
|
528
555
|
const len0 = WASM_VECTOR_LEN;
|
|
529
|
-
wasm.debugservice_eval_step_out(retptr, this.
|
|
556
|
+
wasm.debugservice_eval_step_out(retptr, this.__wbg_ptr, addBorrowedObject(event_cb), ptr0, len0);
|
|
530
557
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
531
558
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
532
559
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -546,14 +573,14 @@ class DebugService {
|
|
|
546
573
|
get_breakpoints(path) {
|
|
547
574
|
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
548
575
|
const len0 = WASM_VECTOR_LEN;
|
|
549
|
-
const ret = wasm.debugservice_get_breakpoints(this.
|
|
576
|
+
const ret = wasm.debugservice_get_breakpoints(this.__wbg_ptr, ptr0, len0);
|
|
550
577
|
return takeObject(ret);
|
|
551
578
|
}
|
|
552
579
|
/**
|
|
553
580
|
* @returns {IVariableList}
|
|
554
581
|
*/
|
|
555
582
|
get_locals() {
|
|
556
|
-
const ret = wasm.debugservice_get_locals(this.
|
|
583
|
+
const ret = wasm.debugservice_get_locals(this.__wbg_ptr);
|
|
557
584
|
return takeObject(ret);
|
|
558
585
|
}
|
|
559
586
|
}
|
|
@@ -563,15 +590,16 @@ module.exports.DebugService = DebugService;
|
|
|
563
590
|
class LanguageService {
|
|
564
591
|
|
|
565
592
|
static __wrap(ptr) {
|
|
593
|
+
ptr = ptr >>> 0;
|
|
566
594
|
const obj = Object.create(LanguageService.prototype);
|
|
567
|
-
obj.
|
|
595
|
+
obj.__wbg_ptr = ptr;
|
|
568
596
|
|
|
569
597
|
return obj;
|
|
570
598
|
}
|
|
571
599
|
|
|
572
600
|
__destroy_into_raw() {
|
|
573
|
-
const ptr = this.
|
|
574
|
-
this.
|
|
601
|
+
const ptr = this.__wbg_ptr;
|
|
602
|
+
this.__wbg_ptr = 0;
|
|
575
603
|
|
|
576
604
|
return ptr;
|
|
577
605
|
}
|
|
@@ -595,7 +623,7 @@ class LanguageService {
|
|
|
595
623
|
* @param {IWorkspaceConfiguration} config
|
|
596
624
|
*/
|
|
597
625
|
update_configuration(config) {
|
|
598
|
-
wasm.languageservice_update_configuration(this.
|
|
626
|
+
wasm.languageservice_update_configuration(this.__wbg_ptr, addHeapObject(config));
|
|
599
627
|
}
|
|
600
628
|
/**
|
|
601
629
|
* @param {string} uri
|
|
@@ -607,7 +635,7 @@ class LanguageService {
|
|
|
607
635
|
const len0 = WASM_VECTOR_LEN;
|
|
608
636
|
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
609
637
|
const len1 = WASM_VECTOR_LEN;
|
|
610
|
-
wasm.languageservice_update_document(this.
|
|
638
|
+
wasm.languageservice_update_document(this.__wbg_ptr, ptr0, len0, version, ptr1, len1);
|
|
611
639
|
}
|
|
612
640
|
/**
|
|
613
641
|
* @param {string} uri
|
|
@@ -615,7 +643,7 @@ class LanguageService {
|
|
|
615
643
|
close_document(uri) {
|
|
616
644
|
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
617
645
|
const len0 = WASM_VECTOR_LEN;
|
|
618
|
-
wasm.languageservice_close_document(this.
|
|
646
|
+
wasm.languageservice_close_document(this.__wbg_ptr, ptr0, len0);
|
|
619
647
|
}
|
|
620
648
|
/**
|
|
621
649
|
* @param {string} uri
|
|
@@ -625,29 +653,50 @@ class LanguageService {
|
|
|
625
653
|
get_completions(uri, offset) {
|
|
626
654
|
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
627
655
|
const len0 = WASM_VECTOR_LEN;
|
|
628
|
-
const ret = wasm.languageservice_get_completions(this.
|
|
656
|
+
const ret = wasm.languageservice_get_completions(this.__wbg_ptr, ptr0, len0, offset);
|
|
629
657
|
return takeObject(ret);
|
|
630
658
|
}
|
|
631
659
|
/**
|
|
632
660
|
* @param {string} uri
|
|
633
661
|
* @param {number} offset
|
|
634
|
-
* @returns {
|
|
662
|
+
* @returns {ILocation | undefined}
|
|
635
663
|
*/
|
|
636
664
|
get_definition(uri, offset) {
|
|
637
665
|
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
638
666
|
const len0 = WASM_VECTOR_LEN;
|
|
639
|
-
const ret = wasm.languageservice_get_definition(this.
|
|
667
|
+
const ret = wasm.languageservice_get_definition(this.__wbg_ptr, ptr0, len0, offset);
|
|
640
668
|
return takeObject(ret);
|
|
641
669
|
}
|
|
642
670
|
/**
|
|
643
671
|
* @param {string} uri
|
|
644
672
|
* @param {number} offset
|
|
673
|
+
* @param {boolean} include_declaration
|
|
674
|
+
* @returns {(ILocation)[]}
|
|
675
|
+
*/
|
|
676
|
+
get_references(uri, offset, include_declaration) {
|
|
677
|
+
try {
|
|
678
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
679
|
+
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
680
|
+
const len0 = WASM_VECTOR_LEN;
|
|
681
|
+
wasm.languageservice_get_references(retptr, this.__wbg_ptr, ptr0, len0, offset, include_declaration);
|
|
682
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
683
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
684
|
+
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
685
|
+
wasm.__wbindgen_export_2(r0, r1 * 4);
|
|
686
|
+
return v2;
|
|
687
|
+
} finally {
|
|
688
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* @param {string} uri
|
|
693
|
+
* @param {number} offset
|
|
645
694
|
* @returns {IHover | undefined}
|
|
646
695
|
*/
|
|
647
696
|
get_hover(uri, offset) {
|
|
648
697
|
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
649
698
|
const len0 = WASM_VECTOR_LEN;
|
|
650
|
-
const ret = wasm.languageservice_get_hover(this.
|
|
699
|
+
const ret = wasm.languageservice_get_hover(this.__wbg_ptr, ptr0, len0, offset);
|
|
651
700
|
return takeObject(ret);
|
|
652
701
|
}
|
|
653
702
|
/**
|
|
@@ -658,7 +707,7 @@ class LanguageService {
|
|
|
658
707
|
get_signature_help(uri, offset) {
|
|
659
708
|
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
660
709
|
const len0 = WASM_VECTOR_LEN;
|
|
661
|
-
const ret = wasm.languageservice_get_signature_help(this.
|
|
710
|
+
const ret = wasm.languageservice_get_signature_help(this.__wbg_ptr, ptr0, len0, offset);
|
|
662
711
|
return takeObject(ret);
|
|
663
712
|
}
|
|
664
713
|
/**
|
|
@@ -672,7 +721,7 @@ class LanguageService {
|
|
|
672
721
|
const len0 = WASM_VECTOR_LEN;
|
|
673
722
|
const ptr1 = passStringToWasm0(new_name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
674
723
|
const len1 = WASM_VECTOR_LEN;
|
|
675
|
-
const ret = wasm.languageservice_get_rename(this.
|
|
724
|
+
const ret = wasm.languageservice_get_rename(this.__wbg_ptr, ptr0, len0, offset, ptr1, len1);
|
|
676
725
|
return takeObject(ret);
|
|
677
726
|
}
|
|
678
727
|
/**
|
|
@@ -683,7 +732,7 @@ class LanguageService {
|
|
|
683
732
|
prepare_rename(uri, offset) {
|
|
684
733
|
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
685
734
|
const len0 = WASM_VECTOR_LEN;
|
|
686
|
-
const ret = wasm.languageservice_prepare_rename(this.
|
|
735
|
+
const ret = wasm.languageservice_prepare_rename(this.__wbg_ptr, ptr0, len0, offset);
|
|
687
736
|
return takeObject(ret);
|
|
688
737
|
}
|
|
689
738
|
}
|
|
@@ -693,35 +742,16 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
693
742
|
takeObject(arg0);
|
|
694
743
|
};
|
|
695
744
|
|
|
696
|
-
module.exports.
|
|
697
|
-
const ret =
|
|
745
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
746
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
698
747
|
return addHeapObject(ret);
|
|
699
748
|
};
|
|
700
749
|
|
|
701
|
-
module.exports.__wbindgen_is_function = function(arg0) {
|
|
702
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
703
|
-
return ret;
|
|
704
|
-
};
|
|
705
|
-
|
|
706
750
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
707
751
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
708
752
|
return addHeapObject(ret);
|
|
709
753
|
};
|
|
710
754
|
|
|
711
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
712
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
713
|
-
return addHeapObject(ret);
|
|
714
|
-
};
|
|
715
|
-
|
|
716
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
717
|
-
const obj = getObject(arg1);
|
|
718
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
719
|
-
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
720
|
-
var len0 = WASM_VECTOR_LEN;
|
|
721
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
722
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
723
|
-
};
|
|
724
|
-
|
|
725
755
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
726
756
|
const val = getObject(arg0);
|
|
727
757
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -738,9 +768,13 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
738
768
|
return ret;
|
|
739
769
|
};
|
|
740
770
|
|
|
741
|
-
module.exports.
|
|
742
|
-
const
|
|
743
|
-
|
|
771
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
772
|
+
const obj = getObject(arg1);
|
|
773
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
774
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
775
|
+
var len1 = WASM_VECTOR_LEN;
|
|
776
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
777
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
744
778
|
};
|
|
745
779
|
|
|
746
780
|
module.exports.__wbindgen_number_new = function(arg0) {
|
|
@@ -748,6 +782,11 @@ module.exports.__wbindgen_number_new = function(arg0) {
|
|
|
748
782
|
return addHeapObject(ret);
|
|
749
783
|
};
|
|
750
784
|
|
|
785
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
786
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
787
|
+
return addHeapObject(ret);
|
|
788
|
+
};
|
|
789
|
+
|
|
751
790
|
module.exports.__wbg_new_0232637a3cb0b1a7 = function() {
|
|
752
791
|
const ret = new Error();
|
|
753
792
|
return addHeapObject(ret);
|
|
@@ -755,10 +794,20 @@ module.exports.__wbg_new_0232637a3cb0b1a7 = function() {
|
|
|
755
794
|
|
|
756
795
|
module.exports.__wbg_stack_3090cd8fd3702c6e = function(arg0, arg1) {
|
|
757
796
|
const ret = getObject(arg1).stack;
|
|
758
|
-
const
|
|
759
|
-
const
|
|
760
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
761
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
797
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
798
|
+
const len1 = WASM_VECTOR_LEN;
|
|
799
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
800
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
module.exports.__wbindgen_is_function = function(arg0) {
|
|
804
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
805
|
+
return ret;
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
809
|
+
const ret = getObject(arg0);
|
|
810
|
+
return addHeapObject(ret);
|
|
762
811
|
};
|
|
763
812
|
|
|
764
813
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
@@ -779,31 +828,39 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
779
828
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
780
829
|
};
|
|
781
830
|
|
|
782
|
-
module.exports.
|
|
831
|
+
module.exports.__wbg_getwithrefkey_d1f0d12f1f1b63ea = function(arg0, arg1) {
|
|
783
832
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
784
833
|
return addHeapObject(ret);
|
|
785
834
|
};
|
|
786
835
|
|
|
787
|
-
module.exports.
|
|
836
|
+
module.exports.__wbg_set_bd72c078edfa51ad = function(arg0, arg1, arg2) {
|
|
788
837
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
789
838
|
};
|
|
790
839
|
|
|
791
|
-
module.exports.
|
|
840
|
+
module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
|
|
841
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
842
|
+
}, arguments) };
|
|
843
|
+
|
|
844
|
+
module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
|
|
845
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
846
|
+
}, arguments) };
|
|
847
|
+
|
|
848
|
+
module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
|
|
792
849
|
const ret = getObject(arg0).crypto;
|
|
793
850
|
return addHeapObject(ret);
|
|
794
851
|
};
|
|
795
852
|
|
|
796
|
-
module.exports.
|
|
853
|
+
module.exports.__wbg_process_298734cf255a885d = function(arg0) {
|
|
797
854
|
const ret = getObject(arg0).process;
|
|
798
855
|
return addHeapObject(ret);
|
|
799
856
|
};
|
|
800
857
|
|
|
801
|
-
module.exports.
|
|
858
|
+
module.exports.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
|
|
802
859
|
const ret = getObject(arg0).versions;
|
|
803
860
|
return addHeapObject(ret);
|
|
804
861
|
};
|
|
805
862
|
|
|
806
|
-
module.exports.
|
|
863
|
+
module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
|
|
807
864
|
const ret = getObject(arg0).node;
|
|
808
865
|
return addHeapObject(ret);
|
|
809
866
|
};
|
|
@@ -813,114 +870,86 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
813
870
|
return ret;
|
|
814
871
|
};
|
|
815
872
|
|
|
816
|
-
module.exports.
|
|
873
|
+
module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
|
|
817
874
|
const ret = getObject(arg0).msCrypto;
|
|
818
875
|
return addHeapObject(ret);
|
|
819
876
|
};
|
|
820
877
|
|
|
821
|
-
module.exports.
|
|
878
|
+
module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
|
|
822
879
|
const ret = module.require;
|
|
823
880
|
return addHeapObject(ret);
|
|
824
881
|
}, arguments) };
|
|
825
882
|
|
|
826
|
-
module.exports.
|
|
827
|
-
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
828
|
-
}, arguments) };
|
|
829
|
-
|
|
830
|
-
module.exports.__wbg_getRandomValues_805f1c3d65988a5a = function() { return handleError(function (arg0, arg1) {
|
|
831
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
832
|
-
}, arguments) };
|
|
833
|
-
|
|
834
|
-
module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
|
|
883
|
+
module.exports.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
|
|
835
884
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
836
885
|
return addHeapObject(ret);
|
|
837
886
|
};
|
|
838
887
|
|
|
839
|
-
module.exports.
|
|
888
|
+
module.exports.__wbg_length_fff51ee6522a1a18 = function(arg0) {
|
|
840
889
|
const ret = getObject(arg0).length;
|
|
841
890
|
return ret;
|
|
842
891
|
};
|
|
843
892
|
|
|
844
|
-
module.exports.
|
|
893
|
+
module.exports.__wbg_new_898a68150f225f2e = function() {
|
|
845
894
|
const ret = new Array();
|
|
846
895
|
return addHeapObject(ret);
|
|
847
896
|
};
|
|
848
897
|
|
|
849
|
-
module.exports.
|
|
898
|
+
module.exports.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
|
|
850
899
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
851
900
|
return addHeapObject(ret);
|
|
852
901
|
};
|
|
853
902
|
|
|
854
|
-
module.exports.
|
|
903
|
+
module.exports.__wbg_next_526fc47e980da008 = function(arg0) {
|
|
855
904
|
const ret = getObject(arg0).next;
|
|
856
905
|
return addHeapObject(ret);
|
|
857
906
|
};
|
|
858
907
|
|
|
859
|
-
module.exports.
|
|
908
|
+
module.exports.__wbg_next_ddb3312ca1c4e32a = function() { return handleError(function (arg0) {
|
|
860
909
|
const ret = getObject(arg0).next();
|
|
861
910
|
return addHeapObject(ret);
|
|
862
911
|
}, arguments) };
|
|
863
912
|
|
|
864
|
-
module.exports.
|
|
913
|
+
module.exports.__wbg_done_5c1f01fb660d73b5 = function(arg0) {
|
|
865
914
|
const ret = getObject(arg0).done;
|
|
866
915
|
return ret;
|
|
867
916
|
};
|
|
868
917
|
|
|
869
|
-
module.exports.
|
|
918
|
+
module.exports.__wbg_value_1695675138684bd5 = function(arg0) {
|
|
870
919
|
const ret = getObject(arg0).value;
|
|
871
920
|
return addHeapObject(ret);
|
|
872
921
|
};
|
|
873
922
|
|
|
874
|
-
module.exports.
|
|
923
|
+
module.exports.__wbg_iterator_97f0c81209c6c35a = function() {
|
|
875
924
|
const ret = Symbol.iterator;
|
|
876
925
|
return addHeapObject(ret);
|
|
877
926
|
};
|
|
878
927
|
|
|
879
|
-
module.exports.
|
|
928
|
+
module.exports.__wbg_get_97b561fb56f034b5 = function() { return handleError(function (arg0, arg1) {
|
|
880
929
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
881
930
|
return addHeapObject(ret);
|
|
882
931
|
}, arguments) };
|
|
883
932
|
|
|
884
|
-
module.exports.
|
|
933
|
+
module.exports.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
|
|
885
934
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
886
935
|
return addHeapObject(ret);
|
|
887
936
|
}, arguments) };
|
|
888
937
|
|
|
889
|
-
module.exports.
|
|
938
|
+
module.exports.__wbg_new_b51585de1b234aff = function() {
|
|
890
939
|
const ret = new Object();
|
|
891
940
|
return addHeapObject(ret);
|
|
892
941
|
};
|
|
893
942
|
|
|
894
|
-
module.exports.
|
|
895
|
-
const ret = self.self;
|
|
896
|
-
return addHeapObject(ret);
|
|
897
|
-
}, arguments) };
|
|
898
|
-
|
|
899
|
-
module.exports.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
|
|
900
|
-
const ret = window.window;
|
|
901
|
-
return addHeapObject(ret);
|
|
902
|
-
}, arguments) };
|
|
903
|
-
|
|
904
|
-
module.exports.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
|
|
905
|
-
const ret = globalThis.globalThis;
|
|
906
|
-
return addHeapObject(ret);
|
|
907
|
-
}, arguments) };
|
|
908
|
-
|
|
909
|
-
module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
|
|
910
|
-
const ret = global.global;
|
|
911
|
-
return addHeapObject(ret);
|
|
912
|
-
}, arguments) };
|
|
913
|
-
|
|
914
|
-
module.exports.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
|
|
943
|
+
module.exports.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
|
|
915
944
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
916
945
|
};
|
|
917
946
|
|
|
918
|
-
module.exports.
|
|
947
|
+
module.exports.__wbg_isArray_4c24b343cb13cfb1 = function(arg0) {
|
|
919
948
|
const ret = Array.isArray(getObject(arg0));
|
|
920
949
|
return ret;
|
|
921
950
|
};
|
|
922
951
|
|
|
923
|
-
module.exports.
|
|
952
|
+
module.exports.__wbg_instanceof_ArrayBuffer_39ac22089b74fddb = function(arg0) {
|
|
924
953
|
let result;
|
|
925
954
|
try {
|
|
926
955
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -931,36 +960,61 @@ module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
|
|
|
931
960
|
return ret;
|
|
932
961
|
};
|
|
933
962
|
|
|
934
|
-
module.exports.
|
|
963
|
+
module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
935
964
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
936
965
|
return addHeapObject(ret);
|
|
937
966
|
}, arguments) };
|
|
938
967
|
|
|
939
|
-
module.exports.
|
|
968
|
+
module.exports.__wbg_call_776890ca77946e2f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
940
969
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
941
970
|
return addHeapObject(ret);
|
|
942
971
|
}, arguments) };
|
|
943
972
|
|
|
944
|
-
module.exports.
|
|
973
|
+
module.exports.__wbg_buffer_085ec1f694018c4f = function(arg0) {
|
|
945
974
|
const ret = getObject(arg0).buffer;
|
|
946
975
|
return addHeapObject(ret);
|
|
947
976
|
};
|
|
948
977
|
|
|
949
|
-
module.exports.
|
|
978
|
+
module.exports.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
|
|
979
|
+
const ret = self.self;
|
|
980
|
+
return addHeapObject(ret);
|
|
981
|
+
}, arguments) };
|
|
982
|
+
|
|
983
|
+
module.exports.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
|
|
984
|
+
const ret = window.window;
|
|
985
|
+
return addHeapObject(ret);
|
|
986
|
+
}, arguments) };
|
|
987
|
+
|
|
988
|
+
module.exports.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
|
|
989
|
+
const ret = globalThis.globalThis;
|
|
990
|
+
return addHeapObject(ret);
|
|
991
|
+
}, arguments) };
|
|
992
|
+
|
|
993
|
+
module.exports.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
|
|
994
|
+
const ret = global.global;
|
|
995
|
+
return addHeapObject(ret);
|
|
996
|
+
}, arguments) };
|
|
997
|
+
|
|
998
|
+
module.exports.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
|
|
999
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1000
|
+
return addHeapObject(ret);
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
module.exports.__wbg_new_8125e318e6245eed = function(arg0) {
|
|
950
1004
|
const ret = new Uint8Array(getObject(arg0));
|
|
951
1005
|
return addHeapObject(ret);
|
|
952
1006
|
};
|
|
953
1007
|
|
|
954
|
-
module.exports.
|
|
1008
|
+
module.exports.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
|
|
955
1009
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
956
1010
|
};
|
|
957
1011
|
|
|
958
|
-
module.exports.
|
|
1012
|
+
module.exports.__wbg_length_72e2208bbc0efc61 = function(arg0) {
|
|
959
1013
|
const ret = getObject(arg0).length;
|
|
960
1014
|
return ret;
|
|
961
1015
|
};
|
|
962
1016
|
|
|
963
|
-
module.exports.
|
|
1017
|
+
module.exports.__wbg_instanceof_Uint8Array_d8d9cb2b8e8ac1d4 = function(arg0) {
|
|
964
1018
|
let result;
|
|
965
1019
|
try {
|
|
966
1020
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -971,22 +1025,22 @@ module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
|
|
|
971
1025
|
return ret;
|
|
972
1026
|
};
|
|
973
1027
|
|
|
974
|
-
module.exports.
|
|
1028
|
+
module.exports.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
|
|
975
1029
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
976
1030
|
return addHeapObject(ret);
|
|
977
1031
|
};
|
|
978
1032
|
|
|
979
|
-
module.exports.
|
|
1033
|
+
module.exports.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
|
|
980
1034
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
981
1035
|
return addHeapObject(ret);
|
|
982
1036
|
};
|
|
983
1037
|
|
|
984
1038
|
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
985
1039
|
const ret = debugString(getObject(arg1));
|
|
986
|
-
const
|
|
987
|
-
const
|
|
988
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
989
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
1040
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
1041
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1042
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
1043
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
990
1044
|
};
|
|
991
1045
|
|
|
992
1046
|
module.exports.__wbindgen_throw = function(arg0, arg1) {
|