@biomejs/wasm-web 1.7.1 → 1.7.3
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/biome_wasm.d.ts +76 -9
- package/biome_wasm.js +247 -192
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ interface UpdateSettingsParams {
|
|
|
24
24
|
configuration: PartialConfiguration;
|
|
25
25
|
gitignore_matches: string[];
|
|
26
26
|
vcs_base_path?: string;
|
|
27
|
-
|
|
27
|
+
workspace_directory?: string;
|
|
28
28
|
}
|
|
29
29
|
interface PartialConfiguration {
|
|
30
30
|
/**
|
|
@@ -154,8 +154,8 @@ If defined here, they should not emit diagnostics.
|
|
|
154
154
|
/**
|
|
155
155
|
* Indicates the type of runtime or transformation used for interpreting JSX.
|
|
156
156
|
*/
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
jsxRuntime?: JsxRuntime;
|
|
158
|
+
organizeImports?: PartialJavascriptOrganizeImports;
|
|
159
159
|
/**
|
|
160
160
|
* Parsing options
|
|
161
161
|
*/
|
|
@@ -327,7 +327,7 @@ interface PartialJavascriptFormatter {
|
|
|
327
327
|
*/
|
|
328
328
|
trailingComma?: TrailingComma;
|
|
329
329
|
}
|
|
330
|
-
type JsxRuntime = "
|
|
330
|
+
type JsxRuntime = "transparent" | "reactClassic";
|
|
331
331
|
interface PartialJavascriptOrganizeImports {}
|
|
332
332
|
interface PartialJavascriptParser {
|
|
333
333
|
/**
|
|
@@ -875,6 +875,10 @@ interface Nursery {
|
|
|
875
875
|
* Disallow using a callback in asynchronous tests and hooks.
|
|
876
876
|
*/
|
|
877
877
|
noDoneCallback?: RuleConfiguration_for_Null;
|
|
878
|
+
/**
|
|
879
|
+
* Disallow duplicate @import rules.
|
|
880
|
+
*/
|
|
881
|
+
noDuplicateAtImportRules?: RuleConfiguration_for_Null;
|
|
878
882
|
/**
|
|
879
883
|
* Disallow duplicate conditions in if-else-if chains
|
|
880
884
|
*/
|
|
@@ -923,10 +927,50 @@ interface Nursery {
|
|
|
923
927
|
* Disallow the use of dependencies that aren't specified in the package.json.
|
|
924
928
|
*/
|
|
925
929
|
noUndeclaredDependencies?: RuleConfiguration_for_Null;
|
|
930
|
+
/**
|
|
931
|
+
* Disallow unknown CSS value functions.
|
|
932
|
+
*/
|
|
933
|
+
noUnknownFunction?: RuleConfiguration_for_Null;
|
|
934
|
+
/**
|
|
935
|
+
* Disallow unknown pseudo-element selectors.
|
|
936
|
+
*/
|
|
937
|
+
noUnknownSelectorPseudoElement?: RuleConfiguration_for_Null;
|
|
938
|
+
/**
|
|
939
|
+
* Disallow unknown CSS units.
|
|
940
|
+
*/
|
|
941
|
+
noUnknownUnit?: RuleConfiguration_for_Null;
|
|
942
|
+
/**
|
|
943
|
+
* Disallow unmatchable An+B selectors.
|
|
944
|
+
*/
|
|
945
|
+
noUnmatchableAnbSelector?: RuleConfiguration_for_Null;
|
|
946
|
+
/**
|
|
947
|
+
* Disallow initializing variables to undefined.
|
|
948
|
+
*/
|
|
949
|
+
noUselessUndefinedInitialization?: RuleConfiguration_for_Null;
|
|
926
950
|
/**
|
|
927
951
|
* It enables the recommended rules for this group
|
|
928
952
|
*/
|
|
929
953
|
recommended?: boolean;
|
|
954
|
+
/**
|
|
955
|
+
* Disallow Array constructors.
|
|
956
|
+
*/
|
|
957
|
+
useArrayLiterals?: RuleConfiguration_for_Null;
|
|
958
|
+
/**
|
|
959
|
+
* Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.
|
|
960
|
+
*/
|
|
961
|
+
useConsistentBuiltinInstantiation?: RuleConfiguration_for_Null;
|
|
962
|
+
/**
|
|
963
|
+
* Require the default clause in switch statements.
|
|
964
|
+
*/
|
|
965
|
+
useDefaultSwitchClause?: RuleConfiguration_for_Null;
|
|
966
|
+
/**
|
|
967
|
+
* Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
|
|
968
|
+
*/
|
|
969
|
+
useExplicitLengthCheck?: RuleConfiguration_for_Null;
|
|
970
|
+
/**
|
|
971
|
+
* Disallow a missing generic family keyword within font families.
|
|
972
|
+
*/
|
|
973
|
+
useGenericFontNames?: RuleConfiguration_for_Null;
|
|
930
974
|
/**
|
|
931
975
|
* Disallows package private imports.
|
|
932
976
|
*/
|
|
@@ -1074,7 +1118,7 @@ interface Style {
|
|
|
1074
1118
|
*/
|
|
1075
1119
|
useConsistentArrayType?: RuleConfiguration_for_ConsistentArrayTypeOptions;
|
|
1076
1120
|
/**
|
|
1077
|
-
* Require const declarations for variables that are
|
|
1121
|
+
* Require const declarations for variables that are only assigned once.
|
|
1078
1122
|
*/
|
|
1079
1123
|
useConst?: RuleConfiguration_for_Null;
|
|
1080
1124
|
/**
|
|
@@ -1637,6 +1681,11 @@ type FilenameCase =
|
|
|
1637
1681
|
| "kebab-case"
|
|
1638
1682
|
| "PascalCase"
|
|
1639
1683
|
| "snake_case";
|
|
1684
|
+
interface RegisterProjectFolderParams {
|
|
1685
|
+
path?: string;
|
|
1686
|
+
setAsCurrentWorkspace: boolean;
|
|
1687
|
+
}
|
|
1688
|
+
type ProjectKey = string;
|
|
1640
1689
|
interface UpdateProjectParams {
|
|
1641
1690
|
path: BiomePath;
|
|
1642
1691
|
}
|
|
@@ -1840,6 +1889,7 @@ type Category =
|
|
|
1840
1889
|
| "lint/nursery/noConstantMathMinMaxClamp"
|
|
1841
1890
|
| "lint/nursery/noCssEmptyBlock"
|
|
1842
1891
|
| "lint/nursery/noDoneCallback"
|
|
1892
|
+
| "lint/nursery/noDuplicateAtImportRules"
|
|
1843
1893
|
| "lint/nursery/noDuplicateElseIf"
|
|
1844
1894
|
| "lint/nursery/noDuplicateFontNames"
|
|
1845
1895
|
| "lint/nursery/noDuplicateJsonKeys"
|
|
@@ -1848,12 +1898,23 @@ type Category =
|
|
|
1848
1898
|
| "lint/nursery/noFlatMapIdentity"
|
|
1849
1899
|
| "lint/nursery/noImportantInKeyframe"
|
|
1850
1900
|
| "lint/nursery/noMisplacedAssertion"
|
|
1901
|
+
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
1851
1902
|
| "lint/nursery/noNodejsModules"
|
|
1852
1903
|
| "lint/nursery/noReactSpecificProps"
|
|
1853
1904
|
| "lint/nursery/noRestrictedImports"
|
|
1854
1905
|
| "lint/nursery/noTypeOnlyImportAttributes"
|
|
1855
1906
|
| "lint/nursery/noUndeclaredDependencies"
|
|
1907
|
+
| "lint/nursery/noUnknownFunction"
|
|
1908
|
+
| "lint/nursery/noUnknownSelectorPseudoElement"
|
|
1909
|
+
| "lint/nursery/noUnknownUnit"
|
|
1910
|
+
| "lint/nursery/noUnmatchableAnbSelector"
|
|
1911
|
+
| "lint/nursery/noUselessUndefinedInitialization"
|
|
1912
|
+
| "lint/nursery/useArrayLiterals"
|
|
1856
1913
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
1914
|
+
| "lint/nursery/useExplicitLengthCheck"
|
|
1915
|
+
| "lint/nursery/useConsistentBuiltinInstantiation"
|
|
1916
|
+
| "lint/nursery/useDefaultSwitchClause"
|
|
1917
|
+
| "lint/nursery/useGenericFontNames"
|
|
1857
1918
|
| "lint/nursery/useImportRestrictions"
|
|
1858
1919
|
| "lint/nursery/useSortedClasses"
|
|
1859
1920
|
| "lint/performance/noAccumulatingSpread"
|
|
@@ -2210,6 +2271,11 @@ export class Workspace {
|
|
|
2210
2271
|
*/
|
|
2211
2272
|
updateSettings(params: UpdateSettingsParams): void;
|
|
2212
2273
|
/**
|
|
2274
|
+
* @param {RegisterProjectFolderParams} params
|
|
2275
|
+
* @returns {ProjectKey}
|
|
2276
|
+
*/
|
|
2277
|
+
registerProjectFolder(params: RegisterProjectFolderParams): ProjectKey;
|
|
2278
|
+
/**
|
|
2213
2279
|
* @param {OpenFileParams} params
|
|
2214
2280
|
*/
|
|
2215
2281
|
openFile(params: OpenFileParams): void;
|
|
@@ -2291,6 +2357,7 @@ export interface InitOutput {
|
|
|
2291
2357
|
readonly workspace_new: () => number;
|
|
2292
2358
|
readonly workspace_fileFeatures: (a: number, b: number, c: number) => void;
|
|
2293
2359
|
readonly workspace_updateSettings: (a: number, b: number, c: number) => void;
|
|
2360
|
+
readonly workspace_registerProjectFolder: (a: number, b: number, c: number) => void;
|
|
2294
2361
|
readonly workspace_openFile: (a: number, b: number, c: number) => void;
|
|
2295
2362
|
readonly workspace_getFileContent: (a: number, b: number, c: number) => void;
|
|
2296
2363
|
readonly workspace_getSyntaxTree: (a: number, b: number, c: number) => void;
|
|
@@ -2312,10 +2379,10 @@ export interface InitOutput {
|
|
|
2312
2379
|
readonly diagnosticprinter_print_simple: (a: number, b: number, c: number) => void;
|
|
2313
2380
|
readonly diagnosticprinter_print_verbose: (a: number, b: number, c: number) => void;
|
|
2314
2381
|
readonly diagnosticprinter_finish: (a: number, b: number) => void;
|
|
2315
|
-
readonly __wbindgen_malloc: (a: number) => number;
|
|
2316
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
|
2382
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
2383
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
2317
2384
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
2318
|
-
readonly __wbindgen_free: (a: number, b: number) => void;
|
|
2385
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
2319
2386
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
2320
2387
|
readonly __wbindgen_start: () => void;
|
|
2321
2388
|
}
|
|
@@ -2339,4 +2406,4 @@ export function initSync(module: SyncInitInput): InitOutput;
|
|
|
2339
2406
|
*
|
|
2340
2407
|
* @returns {Promise<InitOutput>}
|
|
2341
2408
|
*/
|
|
2342
|
-
export default function
|
|
2409
|
+
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
package/biome_wasm.js
CHANGED
|
@@ -6,46 +6,6 @@ heap.push(undefined, null, true, false);
|
|
|
6
6
|
|
|
7
7
|
function getObject(idx) { return heap[idx]; }
|
|
8
8
|
|
|
9
|
-
let heap_next = heap.length;
|
|
10
|
-
|
|
11
|
-
function addHeapObject(obj) {
|
|
12
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
13
|
-
const idx = heap_next;
|
|
14
|
-
heap_next = heap[idx];
|
|
15
|
-
|
|
16
|
-
heap[idx] = obj;
|
|
17
|
-
return idx;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function dropObject(idx) {
|
|
21
|
-
if (idx < 132) return;
|
|
22
|
-
heap[idx] = heap_next;
|
|
23
|
-
heap_next = idx;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function takeObject(idx) {
|
|
27
|
-
const ret = getObject(idx);
|
|
28
|
-
dropObject(idx);
|
|
29
|
-
return ret;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
33
|
-
|
|
34
|
-
cachedTextDecoder.decode();
|
|
35
|
-
|
|
36
|
-
let cachedUint8Memory0 = null;
|
|
37
|
-
|
|
38
|
-
function getUint8Memory0() {
|
|
39
|
-
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
40
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
41
|
-
}
|
|
42
|
-
return cachedUint8Memory0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function getStringFromWasm0(ptr, len) {
|
|
46
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
9
|
function isLikeNone(x) {
|
|
50
10
|
return x === undefined || x === null;
|
|
51
11
|
}
|
|
@@ -70,7 +30,16 @@ function getInt32Memory0() {
|
|
|
70
30
|
|
|
71
31
|
let WASM_VECTOR_LEN = 0;
|
|
72
32
|
|
|
73
|
-
|
|
33
|
+
let cachedUint8Memory0 = null;
|
|
34
|
+
|
|
35
|
+
function getUint8Memory0() {
|
|
36
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
37
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
38
|
+
}
|
|
39
|
+
return cachedUint8Memory0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
74
43
|
|
|
75
44
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
76
45
|
? function (arg, view) {
|
|
@@ -89,14 +58,14 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
89
58
|
|
|
90
59
|
if (realloc === undefined) {
|
|
91
60
|
const buf = cachedTextEncoder.encode(arg);
|
|
92
|
-
const ptr = malloc(buf.length);
|
|
61
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
93
62
|
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
94
63
|
WASM_VECTOR_LEN = buf.length;
|
|
95
64
|
return ptr;
|
|
96
65
|
}
|
|
97
66
|
|
|
98
67
|
let len = arg.length;
|
|
99
|
-
let ptr = malloc(len);
|
|
68
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
100
69
|
|
|
101
70
|
const mem = getUint8Memory0();
|
|
102
71
|
|
|
@@ -112,17 +81,50 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
112
81
|
if (offset !== 0) {
|
|
113
82
|
arg = arg.slice(offset);
|
|
114
83
|
}
|
|
115
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
|
84
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
116
85
|
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
117
86
|
const ret = encodeString(arg, view);
|
|
118
87
|
|
|
119
88
|
offset += ret.written;
|
|
89
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
120
90
|
}
|
|
121
91
|
|
|
122
92
|
WASM_VECTOR_LEN = offset;
|
|
123
93
|
return ptr;
|
|
124
94
|
}
|
|
125
95
|
|
|
96
|
+
let heap_next = heap.length;
|
|
97
|
+
|
|
98
|
+
function dropObject(idx) {
|
|
99
|
+
if (idx < 132) return;
|
|
100
|
+
heap[idx] = heap_next;
|
|
101
|
+
heap_next = idx;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function takeObject(idx) {
|
|
105
|
+
const ret = getObject(idx);
|
|
106
|
+
dropObject(idx);
|
|
107
|
+
return ret;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function addHeapObject(obj) {
|
|
111
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
112
|
+
const idx = heap_next;
|
|
113
|
+
heap_next = heap[idx];
|
|
114
|
+
|
|
115
|
+
heap[idx] = obj;
|
|
116
|
+
return idx;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
120
|
+
|
|
121
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
122
|
+
|
|
123
|
+
function getStringFromWasm0(ptr, len) {
|
|
124
|
+
ptr = ptr >>> 0;
|
|
125
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
126
|
+
}
|
|
127
|
+
|
|
126
128
|
let cachedBigInt64Memory0 = null;
|
|
127
129
|
|
|
128
130
|
function getBigInt64Memory0() {
|
|
@@ -209,21 +211,18 @@ function handleError(f, args) {
|
|
|
209
211
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
210
212
|
}
|
|
211
213
|
}
|
|
214
|
+
|
|
215
|
+
const DiagnosticPrinterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
216
|
+
? { register: () => {}, unregister: () => {} }
|
|
217
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_diagnosticprinter_free(ptr >>> 0));
|
|
212
218
|
/**
|
|
213
219
|
*/
|
|
214
220
|
export class DiagnosticPrinter {
|
|
215
221
|
|
|
216
|
-
static __wrap(ptr) {
|
|
217
|
-
const obj = Object.create(DiagnosticPrinter.prototype);
|
|
218
|
-
obj.ptr = ptr;
|
|
219
|
-
|
|
220
|
-
return obj;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
222
|
__destroy_into_raw() {
|
|
224
|
-
const ptr = this.
|
|
225
|
-
this.
|
|
226
|
-
|
|
223
|
+
const ptr = this.__wbg_ptr;
|
|
224
|
+
this.__wbg_ptr = 0;
|
|
225
|
+
DiagnosticPrinterFinalization.unregister(this);
|
|
227
226
|
return ptr;
|
|
228
227
|
}
|
|
229
228
|
|
|
@@ -241,7 +240,8 @@ export class DiagnosticPrinter {
|
|
|
241
240
|
const ptr1 = passStringToWasm0(file_source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
242
241
|
const len1 = WASM_VECTOR_LEN;
|
|
243
242
|
const ret = wasm.diagnosticprinter_new(ptr0, len0, ptr1, len1);
|
|
244
|
-
|
|
243
|
+
this.__wbg_ptr = ret >>> 0;
|
|
244
|
+
return this;
|
|
245
245
|
}
|
|
246
246
|
/**
|
|
247
247
|
* @param {Diagnostic} diagnostic
|
|
@@ -249,7 +249,7 @@ export class DiagnosticPrinter {
|
|
|
249
249
|
print_simple(diagnostic) {
|
|
250
250
|
try {
|
|
251
251
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
252
|
-
wasm.diagnosticprinter_print_simple(retptr, this.
|
|
252
|
+
wasm.diagnosticprinter_print_simple(retptr, this.__wbg_ptr, addHeapObject(diagnostic));
|
|
253
253
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
254
254
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
255
255
|
if (r1) {
|
|
@@ -265,7 +265,7 @@ export class DiagnosticPrinter {
|
|
|
265
265
|
print_verbose(diagnostic) {
|
|
266
266
|
try {
|
|
267
267
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
268
|
-
wasm.diagnosticprinter_print_verbose(retptr, this.
|
|
268
|
+
wasm.diagnosticprinter_print_verbose(retptr, this.__wbg_ptr, addHeapObject(diagnostic));
|
|
269
269
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
270
270
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
271
271
|
if (r1) {
|
|
@@ -279,6 +279,8 @@ export class DiagnosticPrinter {
|
|
|
279
279
|
* @returns {string}
|
|
280
280
|
*/
|
|
281
281
|
finish() {
|
|
282
|
+
let deferred2_0;
|
|
283
|
+
let deferred2_1;
|
|
282
284
|
try {
|
|
283
285
|
const ptr = this.__destroy_into_raw();
|
|
284
286
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -287,34 +289,33 @@ export class DiagnosticPrinter {
|
|
|
287
289
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
288
290
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
289
291
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
290
|
-
var
|
|
291
|
-
var
|
|
292
|
+
var ptr1 = r0;
|
|
293
|
+
var len1 = r1;
|
|
292
294
|
if (r3) {
|
|
293
|
-
|
|
295
|
+
ptr1 = 0; len1 = 0;
|
|
294
296
|
throw takeObject(r2);
|
|
295
297
|
}
|
|
296
|
-
|
|
298
|
+
deferred2_0 = ptr1;
|
|
299
|
+
deferred2_1 = len1;
|
|
300
|
+
return getStringFromWasm0(ptr1, len1);
|
|
297
301
|
} finally {
|
|
298
302
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
299
|
-
wasm.__wbindgen_free(
|
|
303
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
300
304
|
}
|
|
301
305
|
}
|
|
302
306
|
}
|
|
307
|
+
|
|
308
|
+
const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
309
|
+
? { register: () => {}, unregister: () => {} }
|
|
310
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0));
|
|
303
311
|
/**
|
|
304
312
|
*/
|
|
305
313
|
export class Workspace {
|
|
306
314
|
|
|
307
|
-
static __wrap(ptr) {
|
|
308
|
-
const obj = Object.create(Workspace.prototype);
|
|
309
|
-
obj.ptr = ptr;
|
|
310
|
-
|
|
311
|
-
return obj;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
315
|
__destroy_into_raw() {
|
|
315
|
-
const ptr = this.
|
|
316
|
-
this.
|
|
317
|
-
|
|
316
|
+
const ptr = this.__wbg_ptr;
|
|
317
|
+
this.__wbg_ptr = 0;
|
|
318
|
+
WorkspaceFinalization.unregister(this);
|
|
318
319
|
return ptr;
|
|
319
320
|
}
|
|
320
321
|
|
|
@@ -326,7 +327,8 @@ export class Workspace {
|
|
|
326
327
|
*/
|
|
327
328
|
constructor() {
|
|
328
329
|
const ret = wasm.workspace_new();
|
|
329
|
-
|
|
330
|
+
this.__wbg_ptr = ret >>> 0;
|
|
331
|
+
return this;
|
|
330
332
|
}
|
|
331
333
|
/**
|
|
332
334
|
* @param {SupportsFeatureParams} params
|
|
@@ -335,7 +337,7 @@ export class Workspace {
|
|
|
335
337
|
fileFeatures(params) {
|
|
336
338
|
try {
|
|
337
339
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
338
|
-
wasm.workspace_fileFeatures(retptr, this.
|
|
340
|
+
wasm.workspace_fileFeatures(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
339
341
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
340
342
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
341
343
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -353,7 +355,7 @@ export class Workspace {
|
|
|
353
355
|
updateSettings(params) {
|
|
354
356
|
try {
|
|
355
357
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
356
|
-
wasm.workspace_updateSettings(retptr, this.
|
|
358
|
+
wasm.workspace_updateSettings(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
357
359
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
358
360
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
359
361
|
if (r1) {
|
|
@@ -364,12 +366,31 @@ export class Workspace {
|
|
|
364
366
|
}
|
|
365
367
|
}
|
|
366
368
|
/**
|
|
369
|
+
* @param {RegisterProjectFolderParams} params
|
|
370
|
+
* @returns {ProjectKey}
|
|
371
|
+
*/
|
|
372
|
+
registerProjectFolder(params) {
|
|
373
|
+
try {
|
|
374
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
375
|
+
wasm.workspace_registerProjectFolder(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
376
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
377
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
378
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
379
|
+
if (r2) {
|
|
380
|
+
throw takeObject(r1);
|
|
381
|
+
}
|
|
382
|
+
return takeObject(r0);
|
|
383
|
+
} finally {
|
|
384
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
367
388
|
* @param {OpenFileParams} params
|
|
368
389
|
*/
|
|
369
390
|
openFile(params) {
|
|
370
391
|
try {
|
|
371
392
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
372
|
-
wasm.workspace_openFile(retptr, this.
|
|
393
|
+
wasm.workspace_openFile(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
373
394
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
374
395
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
375
396
|
if (r1) {
|
|
@@ -384,23 +405,27 @@ export class Workspace {
|
|
|
384
405
|
* @returns {string}
|
|
385
406
|
*/
|
|
386
407
|
getFileContent(params) {
|
|
408
|
+
let deferred2_0;
|
|
409
|
+
let deferred2_1;
|
|
387
410
|
try {
|
|
388
411
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
389
|
-
wasm.workspace_getFileContent(retptr, this.
|
|
412
|
+
wasm.workspace_getFileContent(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
390
413
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
391
414
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
392
415
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
393
416
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
394
|
-
var
|
|
395
|
-
var
|
|
417
|
+
var ptr1 = r0;
|
|
418
|
+
var len1 = r1;
|
|
396
419
|
if (r3) {
|
|
397
|
-
|
|
420
|
+
ptr1 = 0; len1 = 0;
|
|
398
421
|
throw takeObject(r2);
|
|
399
422
|
}
|
|
400
|
-
|
|
423
|
+
deferred2_0 = ptr1;
|
|
424
|
+
deferred2_1 = len1;
|
|
425
|
+
return getStringFromWasm0(ptr1, len1);
|
|
401
426
|
} finally {
|
|
402
427
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
403
|
-
wasm.__wbindgen_free(
|
|
428
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
404
429
|
}
|
|
405
430
|
}
|
|
406
431
|
/**
|
|
@@ -410,7 +435,7 @@ export class Workspace {
|
|
|
410
435
|
getSyntaxTree(params) {
|
|
411
436
|
try {
|
|
412
437
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
413
|
-
wasm.workspace_getSyntaxTree(retptr, this.
|
|
438
|
+
wasm.workspace_getSyntaxTree(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
414
439
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
415
440
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
416
441
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -427,23 +452,27 @@ export class Workspace {
|
|
|
427
452
|
* @returns {string}
|
|
428
453
|
*/
|
|
429
454
|
getControlFlowGraph(params) {
|
|
455
|
+
let deferred2_0;
|
|
456
|
+
let deferred2_1;
|
|
430
457
|
try {
|
|
431
458
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
432
|
-
wasm.workspace_getControlFlowGraph(retptr, this.
|
|
459
|
+
wasm.workspace_getControlFlowGraph(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
433
460
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
434
461
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
435
462
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
436
463
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
437
|
-
var
|
|
438
|
-
var
|
|
464
|
+
var ptr1 = r0;
|
|
465
|
+
var len1 = r1;
|
|
439
466
|
if (r3) {
|
|
440
|
-
|
|
467
|
+
ptr1 = 0; len1 = 0;
|
|
441
468
|
throw takeObject(r2);
|
|
442
469
|
}
|
|
443
|
-
|
|
470
|
+
deferred2_0 = ptr1;
|
|
471
|
+
deferred2_1 = len1;
|
|
472
|
+
return getStringFromWasm0(ptr1, len1);
|
|
444
473
|
} finally {
|
|
445
474
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
446
|
-
wasm.__wbindgen_free(
|
|
475
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
447
476
|
}
|
|
448
477
|
}
|
|
449
478
|
/**
|
|
@@ -451,23 +480,27 @@ export class Workspace {
|
|
|
451
480
|
* @returns {string}
|
|
452
481
|
*/
|
|
453
482
|
getFormatterIr(params) {
|
|
483
|
+
let deferred2_0;
|
|
484
|
+
let deferred2_1;
|
|
454
485
|
try {
|
|
455
486
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
456
|
-
wasm.workspace_getFormatterIr(retptr, this.
|
|
487
|
+
wasm.workspace_getFormatterIr(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
457
488
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
458
489
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
459
490
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
460
491
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
461
|
-
var
|
|
462
|
-
var
|
|
492
|
+
var ptr1 = r0;
|
|
493
|
+
var len1 = r1;
|
|
463
494
|
if (r3) {
|
|
464
|
-
|
|
495
|
+
ptr1 = 0; len1 = 0;
|
|
465
496
|
throw takeObject(r2);
|
|
466
497
|
}
|
|
467
|
-
|
|
498
|
+
deferred2_0 = ptr1;
|
|
499
|
+
deferred2_1 = len1;
|
|
500
|
+
return getStringFromWasm0(ptr1, len1);
|
|
468
501
|
} finally {
|
|
469
502
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
470
|
-
wasm.__wbindgen_free(
|
|
503
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
471
504
|
}
|
|
472
505
|
}
|
|
473
506
|
/**
|
|
@@ -476,7 +509,7 @@ export class Workspace {
|
|
|
476
509
|
changeFile(params) {
|
|
477
510
|
try {
|
|
478
511
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
479
|
-
wasm.workspace_changeFile(retptr, this.
|
|
512
|
+
wasm.workspace_changeFile(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
480
513
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
481
514
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
482
515
|
if (r1) {
|
|
@@ -492,7 +525,7 @@ export class Workspace {
|
|
|
492
525
|
closeFile(params) {
|
|
493
526
|
try {
|
|
494
527
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
495
|
-
wasm.workspace_closeFile(retptr, this.
|
|
528
|
+
wasm.workspace_closeFile(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
496
529
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
497
530
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
498
531
|
if (r1) {
|
|
@@ -509,7 +542,7 @@ export class Workspace {
|
|
|
509
542
|
pullDiagnostics(params) {
|
|
510
543
|
try {
|
|
511
544
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
512
|
-
wasm.workspace_pullDiagnostics(retptr, this.
|
|
545
|
+
wasm.workspace_pullDiagnostics(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
513
546
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
514
547
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
515
548
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -528,7 +561,7 @@ export class Workspace {
|
|
|
528
561
|
pullActions(params) {
|
|
529
562
|
try {
|
|
530
563
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
531
|
-
wasm.workspace_pullActions(retptr, this.
|
|
564
|
+
wasm.workspace_pullActions(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
532
565
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
533
566
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
534
567
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -547,7 +580,7 @@ export class Workspace {
|
|
|
547
580
|
formatFile(params) {
|
|
548
581
|
try {
|
|
549
582
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
550
|
-
wasm.workspace_formatFile(retptr, this.
|
|
583
|
+
wasm.workspace_formatFile(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
551
584
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
552
585
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
553
586
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -566,7 +599,7 @@ export class Workspace {
|
|
|
566
599
|
formatRange(params) {
|
|
567
600
|
try {
|
|
568
601
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
569
|
-
wasm.workspace_formatRange(retptr, this.
|
|
602
|
+
wasm.workspace_formatRange(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
570
603
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
571
604
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
572
605
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -585,7 +618,7 @@ export class Workspace {
|
|
|
585
618
|
formatOnType(params) {
|
|
586
619
|
try {
|
|
587
620
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
588
|
-
wasm.workspace_formatOnType(retptr, this.
|
|
621
|
+
wasm.workspace_formatOnType(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
589
622
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
590
623
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
591
624
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -604,7 +637,7 @@ export class Workspace {
|
|
|
604
637
|
fixFile(params) {
|
|
605
638
|
try {
|
|
606
639
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
607
|
-
wasm.workspace_fixFile(retptr, this.
|
|
640
|
+
wasm.workspace_fixFile(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
608
641
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
609
642
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
610
643
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -623,7 +656,7 @@ export class Workspace {
|
|
|
623
656
|
organizeImports(params) {
|
|
624
657
|
try {
|
|
625
658
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
626
|
-
wasm.workspace_organizeImports(retptr, this.
|
|
659
|
+
wasm.workspace_organizeImports(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
627
660
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
628
661
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
629
662
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -642,7 +675,7 @@ export class Workspace {
|
|
|
642
675
|
rename(params) {
|
|
643
676
|
try {
|
|
644
677
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
645
|
-
wasm.workspace_rename(retptr, this.
|
|
678
|
+
wasm.workspace_rename(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
646
679
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
647
680
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
648
681
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -656,7 +689,7 @@ export class Workspace {
|
|
|
656
689
|
}
|
|
657
690
|
}
|
|
658
691
|
|
|
659
|
-
async function
|
|
692
|
+
async function __wbg_load(module, imports) {
|
|
660
693
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
661
694
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
662
695
|
try {
|
|
@@ -687,7 +720,7 @@ async function load(module, imports) {
|
|
|
687
720
|
}
|
|
688
721
|
}
|
|
689
722
|
|
|
690
|
-
function
|
|
723
|
+
function __wbg_get_imports() {
|
|
691
724
|
const imports = {};
|
|
692
725
|
imports.wbg = {};
|
|
693
726
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
@@ -699,25 +732,6 @@ function getImports() {
|
|
|
699
732
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
700
733
|
return ret;
|
|
701
734
|
};
|
|
702
|
-
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
703
|
-
const ret = arg0;
|
|
704
|
-
return addHeapObject(ret);
|
|
705
|
-
};
|
|
706
|
-
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
707
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
708
|
-
return ret;
|
|
709
|
-
};
|
|
710
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
711
|
-
takeObject(arg0);
|
|
712
|
-
};
|
|
713
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
714
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
715
|
-
return addHeapObject(ret);
|
|
716
|
-
};
|
|
717
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
718
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
719
|
-
return addHeapObject(ret);
|
|
720
|
-
};
|
|
721
735
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
722
736
|
const obj = getObject(arg1);
|
|
723
737
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
@@ -727,10 +741,10 @@ function getImports() {
|
|
|
727
741
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
728
742
|
const obj = getObject(arg1);
|
|
729
743
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
730
|
-
var
|
|
731
|
-
var
|
|
732
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
733
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
744
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
745
|
+
var len1 = WASM_VECTOR_LEN;
|
|
746
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
747
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
734
748
|
};
|
|
735
749
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
736
750
|
const val = getObject(arg0);
|
|
@@ -741,6 +755,25 @@ function getImports() {
|
|
|
741
755
|
const ret = getObject(arg0) in getObject(arg1);
|
|
742
756
|
return ret;
|
|
743
757
|
};
|
|
758
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
759
|
+
takeObject(arg0);
|
|
760
|
+
};
|
|
761
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
762
|
+
const ret = arg0;
|
|
763
|
+
return addHeapObject(ret);
|
|
764
|
+
};
|
|
765
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
766
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
767
|
+
return ret;
|
|
768
|
+
};
|
|
769
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
770
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
771
|
+
return addHeapObject(ret);
|
|
772
|
+
};
|
|
773
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
774
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
775
|
+
return addHeapObject(ret);
|
|
776
|
+
};
|
|
744
777
|
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
745
778
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
746
779
|
return ret;
|
|
@@ -749,6 +782,14 @@ function getImports() {
|
|
|
749
782
|
const ret = getObject(arg0) === undefined;
|
|
750
783
|
return ret;
|
|
751
784
|
};
|
|
785
|
+
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
786
|
+
const ret = +getObject(arg0);
|
|
787
|
+
return ret;
|
|
788
|
+
};
|
|
789
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
790
|
+
const ret = getObject(arg0);
|
|
791
|
+
return addHeapObject(ret);
|
|
792
|
+
};
|
|
752
793
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
753
794
|
const ret = getObject(arg0) == getObject(arg1);
|
|
754
795
|
return ret;
|
|
@@ -757,27 +798,23 @@ function getImports() {
|
|
|
757
798
|
const ret = arg0;
|
|
758
799
|
return addHeapObject(ret);
|
|
759
800
|
};
|
|
760
|
-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
761
|
-
const ret = getObject(arg0);
|
|
762
|
-
return addHeapObject(ret);
|
|
763
|
-
};
|
|
764
801
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
765
802
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
766
803
|
return addHeapObject(ret);
|
|
767
804
|
};
|
|
768
|
-
imports.wbg.
|
|
805
|
+
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
769
806
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
770
807
|
return addHeapObject(ret);
|
|
771
808
|
};
|
|
772
|
-
imports.wbg.
|
|
809
|
+
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
773
810
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
774
811
|
};
|
|
775
|
-
imports.wbg.
|
|
812
|
+
imports.wbg.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
|
|
776
813
|
const ret = String(getObject(arg1));
|
|
777
|
-
const
|
|
778
|
-
const
|
|
779
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
780
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
814
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
815
|
+
const len1 = WASM_VECTOR_LEN;
|
|
816
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
817
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
781
818
|
};
|
|
782
819
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
783
820
|
const ret = new Error();
|
|
@@ -785,123 +822,137 @@ function getImports() {
|
|
|
785
822
|
};
|
|
786
823
|
imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
787
824
|
const ret = getObject(arg1).stack;
|
|
788
|
-
const
|
|
789
|
-
const
|
|
790
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
791
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
825
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
826
|
+
const len1 = WASM_VECTOR_LEN;
|
|
827
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
828
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
792
829
|
};
|
|
793
830
|
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
831
|
+
let deferred0_0;
|
|
832
|
+
let deferred0_1;
|
|
794
833
|
try {
|
|
834
|
+
deferred0_0 = arg0;
|
|
835
|
+
deferred0_1 = arg1;
|
|
795
836
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
796
837
|
} finally {
|
|
797
|
-
wasm.__wbindgen_free(
|
|
838
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
798
839
|
}
|
|
799
840
|
};
|
|
800
|
-
imports.wbg.
|
|
841
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
842
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
843
|
+
return ret;
|
|
844
|
+
};
|
|
845
|
+
imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
|
|
801
846
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
802
847
|
return addHeapObject(ret);
|
|
803
848
|
};
|
|
804
|
-
imports.wbg.
|
|
849
|
+
imports.wbg.__wbg_length_cd7af8117672b8b8 = function(arg0) {
|
|
805
850
|
const ret = getObject(arg0).length;
|
|
806
851
|
return ret;
|
|
807
852
|
};
|
|
808
|
-
imports.wbg.
|
|
853
|
+
imports.wbg.__wbg_new_16b304a2cfa7ff4a = function() {
|
|
809
854
|
const ret = new Array();
|
|
810
855
|
return addHeapObject(ret);
|
|
811
856
|
};
|
|
812
|
-
imports.wbg.
|
|
813
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
814
|
-
return ret;
|
|
815
|
-
};
|
|
816
|
-
imports.wbg.__wbg_new_f841cc6f2098f4b5 = function() {
|
|
857
|
+
imports.wbg.__wbg_new_d9bc3a0147634640 = function() {
|
|
817
858
|
const ret = new Map();
|
|
818
859
|
return addHeapObject(ret);
|
|
819
860
|
};
|
|
820
|
-
imports.wbg.
|
|
861
|
+
imports.wbg.__wbg_next_40fc327bfc8770e6 = function(arg0) {
|
|
821
862
|
const ret = getObject(arg0).next;
|
|
822
863
|
return addHeapObject(ret);
|
|
823
864
|
};
|
|
824
|
-
imports.wbg.
|
|
865
|
+
imports.wbg.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) {
|
|
825
866
|
const ret = getObject(arg0).next();
|
|
826
867
|
return addHeapObject(ret);
|
|
827
868
|
}, arguments) };
|
|
828
|
-
imports.wbg.
|
|
869
|
+
imports.wbg.__wbg_done_298b57d23c0fc80c = function(arg0) {
|
|
829
870
|
const ret = getObject(arg0).done;
|
|
830
871
|
return ret;
|
|
831
872
|
};
|
|
832
|
-
imports.wbg.
|
|
873
|
+
imports.wbg.__wbg_value_d93c65011f51a456 = function(arg0) {
|
|
833
874
|
const ret = getObject(arg0).value;
|
|
834
875
|
return addHeapObject(ret);
|
|
835
876
|
};
|
|
836
|
-
imports.wbg.
|
|
877
|
+
imports.wbg.__wbg_iterator_2cee6dadfd956dfa = function() {
|
|
837
878
|
const ret = Symbol.iterator;
|
|
838
879
|
return addHeapObject(ret);
|
|
839
880
|
};
|
|
840
|
-
imports.wbg.
|
|
881
|
+
imports.wbg.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) {
|
|
841
882
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
842
883
|
return addHeapObject(ret);
|
|
843
884
|
}, arguments) };
|
|
844
|
-
imports.wbg.
|
|
885
|
+
imports.wbg.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
|
|
845
886
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
846
887
|
return addHeapObject(ret);
|
|
847
888
|
}, arguments) };
|
|
848
|
-
imports.wbg.
|
|
889
|
+
imports.wbg.__wbg_new_72fb9a18b5ae2624 = function() {
|
|
849
890
|
const ret = new Object();
|
|
850
891
|
return addHeapObject(ret);
|
|
851
892
|
};
|
|
852
|
-
imports.wbg.
|
|
893
|
+
imports.wbg.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) {
|
|
853
894
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
854
895
|
};
|
|
855
|
-
imports.wbg.
|
|
896
|
+
imports.wbg.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
|
|
856
897
|
const ret = Array.isArray(getObject(arg0));
|
|
857
898
|
return ret;
|
|
858
899
|
};
|
|
859
|
-
imports.wbg.
|
|
900
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
|
|
860
901
|
let result;
|
|
861
902
|
try {
|
|
862
903
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
863
|
-
} catch {
|
|
904
|
+
} catch (_) {
|
|
864
905
|
result = false;
|
|
865
906
|
}
|
|
866
907
|
const ret = result;
|
|
867
908
|
return ret;
|
|
868
909
|
};
|
|
869
|
-
imports.wbg.
|
|
910
|
+
imports.wbg.__wbg_new_28c511d9baebfa89 = function(arg0, arg1) {
|
|
870
911
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
871
912
|
return addHeapObject(ret);
|
|
872
913
|
};
|
|
873
|
-
imports.wbg.
|
|
914
|
+
imports.wbg.__wbg_instanceof_Map_87917e0a7aaf4012 = function(arg0) {
|
|
915
|
+
let result;
|
|
916
|
+
try {
|
|
917
|
+
result = getObject(arg0) instanceof Map;
|
|
918
|
+
} catch (_) {
|
|
919
|
+
result = false;
|
|
920
|
+
}
|
|
921
|
+
const ret = result;
|
|
922
|
+
return ret;
|
|
923
|
+
};
|
|
924
|
+
imports.wbg.__wbg_set_8417257aaedc936b = function(arg0, arg1, arg2) {
|
|
874
925
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
875
926
|
return addHeapObject(ret);
|
|
876
927
|
};
|
|
877
|
-
imports.wbg.
|
|
928
|
+
imports.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2 = function(arg0) {
|
|
878
929
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
879
930
|
return ret;
|
|
880
931
|
};
|
|
881
|
-
imports.wbg.
|
|
932
|
+
imports.wbg.__wbg_entries_95cc2c823b285a09 = function(arg0) {
|
|
882
933
|
const ret = Object.entries(getObject(arg0));
|
|
883
934
|
return addHeapObject(ret);
|
|
884
935
|
};
|
|
885
|
-
imports.wbg.
|
|
936
|
+
imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
|
|
886
937
|
const ret = getObject(arg0).buffer;
|
|
887
938
|
return addHeapObject(ret);
|
|
888
939
|
};
|
|
889
|
-
imports.wbg.
|
|
940
|
+
imports.wbg.__wbg_new_63b92bc8671ed464 = function(arg0) {
|
|
890
941
|
const ret = new Uint8Array(getObject(arg0));
|
|
891
942
|
return addHeapObject(ret);
|
|
892
943
|
};
|
|
893
|
-
imports.wbg.
|
|
944
|
+
imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
|
|
894
945
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
895
946
|
};
|
|
896
|
-
imports.wbg.
|
|
947
|
+
imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) {
|
|
897
948
|
const ret = getObject(arg0).length;
|
|
898
949
|
return ret;
|
|
899
950
|
};
|
|
900
|
-
imports.wbg.
|
|
951
|
+
imports.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(arg0) {
|
|
901
952
|
let result;
|
|
902
953
|
try {
|
|
903
954
|
result = getObject(arg0) instanceof Uint8Array;
|
|
904
|
-
} catch {
|
|
955
|
+
} catch (_) {
|
|
905
956
|
result = false;
|
|
906
957
|
}
|
|
907
958
|
const ret = result;
|
|
@@ -915,10 +966,10 @@ function getImports() {
|
|
|
915
966
|
};
|
|
916
967
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
917
968
|
const ret = debugString(getObject(arg1));
|
|
918
|
-
const
|
|
919
|
-
const
|
|
920
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
921
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
969
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
970
|
+
const len1 = WASM_VECTOR_LEN;
|
|
971
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
972
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
922
973
|
};
|
|
923
974
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
924
975
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
@@ -931,13 +982,13 @@ function getImports() {
|
|
|
931
982
|
return imports;
|
|
932
983
|
}
|
|
933
984
|
|
|
934
|
-
function
|
|
985
|
+
function __wbg_init_memory(imports, maybe_memory) {
|
|
935
986
|
|
|
936
987
|
}
|
|
937
988
|
|
|
938
|
-
function
|
|
989
|
+
function __wbg_finalize_init(instance, module) {
|
|
939
990
|
wasm = instance.exports;
|
|
940
|
-
|
|
991
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
941
992
|
cachedBigInt64Memory0 = null;
|
|
942
993
|
cachedFloat64Memory0 = null;
|
|
943
994
|
cachedInt32Memory0 = null;
|
|
@@ -948,9 +999,11 @@ function finalizeInit(instance, module) {
|
|
|
948
999
|
}
|
|
949
1000
|
|
|
950
1001
|
function initSync(module) {
|
|
951
|
-
|
|
1002
|
+
if (wasm !== undefined) return wasm;
|
|
952
1003
|
|
|
953
|
-
|
|
1004
|
+
const imports = __wbg_get_imports();
|
|
1005
|
+
|
|
1006
|
+
__wbg_init_memory(imports);
|
|
954
1007
|
|
|
955
1008
|
if (!(module instanceof WebAssembly.Module)) {
|
|
956
1009
|
module = new WebAssembly.Module(module);
|
|
@@ -958,25 +1011,27 @@ function initSync(module) {
|
|
|
958
1011
|
|
|
959
1012
|
const instance = new WebAssembly.Instance(module, imports);
|
|
960
1013
|
|
|
961
|
-
return
|
|
1014
|
+
return __wbg_finalize_init(instance, module);
|
|
962
1015
|
}
|
|
963
1016
|
|
|
964
|
-
async function
|
|
1017
|
+
async function __wbg_init(input) {
|
|
1018
|
+
if (wasm !== undefined) return wasm;
|
|
1019
|
+
|
|
965
1020
|
if (typeof input === 'undefined') {
|
|
966
1021
|
input = new URL('biome_wasm_bg.wasm', import.meta.url);
|
|
967
1022
|
}
|
|
968
|
-
const imports =
|
|
1023
|
+
const imports = __wbg_get_imports();
|
|
969
1024
|
|
|
970
1025
|
if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
|
|
971
1026
|
input = fetch(input);
|
|
972
1027
|
}
|
|
973
1028
|
|
|
974
|
-
|
|
1029
|
+
__wbg_init_memory(imports);
|
|
975
1030
|
|
|
976
|
-
const { instance, module } = await
|
|
1031
|
+
const { instance, module } = await __wbg_load(await input, imports);
|
|
977
1032
|
|
|
978
|
-
return
|
|
1033
|
+
return __wbg_finalize_init(instance, module);
|
|
979
1034
|
}
|
|
980
1035
|
|
|
981
1036
|
export { initSync }
|
|
982
|
-
export default
|
|
1037
|
+
export default __wbg_init;
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/wasm-web","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.7.
|
|
1
|
+
{"name":"@biomejs/wasm-web","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.7.3","license":"MIT OR Apache-2.0","repository":{"type":"git","url":"https://github.com/biomejs/biome"},"files":["biome_wasm_bg.wasm","biome_wasm.js","biome_wasm.d.ts"],"module":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","sideEffects":["./snippets/*"],"keywords":["parser","linter","formatter"]}
|