@biomejs/wasm-bundler 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 +71 -5
- package/biome_wasm_bg.js +239 -186
- 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;
|
package/biome_wasm_bg.js
CHANGED
|
@@ -10,48 +10,6 @@ heap.push(undefined, null, true, false);
|
|
|
10
10
|
|
|
11
11
|
function getObject(idx) { return heap[idx]; }
|
|
12
12
|
|
|
13
|
-
let heap_next = heap.length;
|
|
14
|
-
|
|
15
|
-
function addHeapObject(obj) {
|
|
16
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
17
|
-
const idx = heap_next;
|
|
18
|
-
heap_next = heap[idx];
|
|
19
|
-
|
|
20
|
-
heap[idx] = obj;
|
|
21
|
-
return idx;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function dropObject(idx) {
|
|
25
|
-
if (idx < 132) return;
|
|
26
|
-
heap[idx] = heap_next;
|
|
27
|
-
heap_next = idx;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function takeObject(idx) {
|
|
31
|
-
const ret = getObject(idx);
|
|
32
|
-
dropObject(idx);
|
|
33
|
-
return ret;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
37
|
-
|
|
38
|
-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
39
|
-
|
|
40
|
-
cachedTextDecoder.decode();
|
|
41
|
-
|
|
42
|
-
let cachedUint8Memory0 = null;
|
|
43
|
-
|
|
44
|
-
function getUint8Memory0() {
|
|
45
|
-
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
46
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
47
|
-
}
|
|
48
|
-
return cachedUint8Memory0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function getStringFromWasm0(ptr, len) {
|
|
52
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
13
|
function isLikeNone(x) {
|
|
56
14
|
return x === undefined || x === null;
|
|
57
15
|
}
|
|
@@ -76,6 +34,15 @@ function getInt32Memory0() {
|
|
|
76
34
|
|
|
77
35
|
let WASM_VECTOR_LEN = 0;
|
|
78
36
|
|
|
37
|
+
let cachedUint8Memory0 = null;
|
|
38
|
+
|
|
39
|
+
function getUint8Memory0() {
|
|
40
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
41
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
42
|
+
}
|
|
43
|
+
return cachedUint8Memory0;
|
|
44
|
+
}
|
|
45
|
+
|
|
79
46
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
80
47
|
|
|
81
48
|
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
@@ -97,14 +64,14 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
97
64
|
|
|
98
65
|
if (realloc === undefined) {
|
|
99
66
|
const buf = cachedTextEncoder.encode(arg);
|
|
100
|
-
const ptr = malloc(buf.length);
|
|
67
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
101
68
|
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
102
69
|
WASM_VECTOR_LEN = buf.length;
|
|
103
70
|
return ptr;
|
|
104
71
|
}
|
|
105
72
|
|
|
106
73
|
let len = arg.length;
|
|
107
|
-
let ptr = malloc(len);
|
|
74
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
108
75
|
|
|
109
76
|
const mem = getUint8Memory0();
|
|
110
77
|
|
|
@@ -120,17 +87,52 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
120
87
|
if (offset !== 0) {
|
|
121
88
|
arg = arg.slice(offset);
|
|
122
89
|
}
|
|
123
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
|
90
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
124
91
|
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
125
92
|
const ret = encodeString(arg, view);
|
|
126
93
|
|
|
127
94
|
offset += ret.written;
|
|
95
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
128
96
|
}
|
|
129
97
|
|
|
130
98
|
WASM_VECTOR_LEN = offset;
|
|
131
99
|
return ptr;
|
|
132
100
|
}
|
|
133
101
|
|
|
102
|
+
let heap_next = heap.length;
|
|
103
|
+
|
|
104
|
+
function dropObject(idx) {
|
|
105
|
+
if (idx < 132) return;
|
|
106
|
+
heap[idx] = heap_next;
|
|
107
|
+
heap_next = idx;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function takeObject(idx) {
|
|
111
|
+
const ret = getObject(idx);
|
|
112
|
+
dropObject(idx);
|
|
113
|
+
return ret;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function addHeapObject(obj) {
|
|
117
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
118
|
+
const idx = heap_next;
|
|
119
|
+
heap_next = heap[idx];
|
|
120
|
+
|
|
121
|
+
heap[idx] = obj;
|
|
122
|
+
return idx;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
126
|
+
|
|
127
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
128
|
+
|
|
129
|
+
cachedTextDecoder.decode();
|
|
130
|
+
|
|
131
|
+
function getStringFromWasm0(ptr, len) {
|
|
132
|
+
ptr = ptr >>> 0;
|
|
133
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
134
|
+
}
|
|
135
|
+
|
|
134
136
|
let cachedBigInt64Memory0 = null;
|
|
135
137
|
|
|
136
138
|
function getBigInt64Memory0() {
|
|
@@ -217,21 +219,18 @@ function handleError(f, args) {
|
|
|
217
219
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
218
220
|
}
|
|
219
221
|
}
|
|
222
|
+
|
|
223
|
+
const DiagnosticPrinterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
224
|
+
? { register: () => {}, unregister: () => {} }
|
|
225
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_diagnosticprinter_free(ptr >>> 0));
|
|
220
226
|
/**
|
|
221
227
|
*/
|
|
222
228
|
export class DiagnosticPrinter {
|
|
223
229
|
|
|
224
|
-
static __wrap(ptr) {
|
|
225
|
-
const obj = Object.create(DiagnosticPrinter.prototype);
|
|
226
|
-
obj.ptr = ptr;
|
|
227
|
-
|
|
228
|
-
return obj;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
230
|
__destroy_into_raw() {
|
|
232
|
-
const ptr = this.
|
|
233
|
-
this.
|
|
234
|
-
|
|
231
|
+
const ptr = this.__wbg_ptr;
|
|
232
|
+
this.__wbg_ptr = 0;
|
|
233
|
+
DiagnosticPrinterFinalization.unregister(this);
|
|
235
234
|
return ptr;
|
|
236
235
|
}
|
|
237
236
|
|
|
@@ -249,7 +248,8 @@ export class DiagnosticPrinter {
|
|
|
249
248
|
const ptr1 = passStringToWasm0(file_source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
250
249
|
const len1 = WASM_VECTOR_LEN;
|
|
251
250
|
const ret = wasm.diagnosticprinter_new(ptr0, len0, ptr1, len1);
|
|
252
|
-
|
|
251
|
+
this.__wbg_ptr = ret >>> 0;
|
|
252
|
+
return this;
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
255
|
* @param {Diagnostic} diagnostic
|
|
@@ -257,7 +257,7 @@ export class DiagnosticPrinter {
|
|
|
257
257
|
print_simple(diagnostic) {
|
|
258
258
|
try {
|
|
259
259
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
260
|
-
wasm.diagnosticprinter_print_simple(retptr, this.
|
|
260
|
+
wasm.diagnosticprinter_print_simple(retptr, this.__wbg_ptr, addHeapObject(diagnostic));
|
|
261
261
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
262
262
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
263
263
|
if (r1) {
|
|
@@ -273,7 +273,7 @@ export class DiagnosticPrinter {
|
|
|
273
273
|
print_verbose(diagnostic) {
|
|
274
274
|
try {
|
|
275
275
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
276
|
-
wasm.diagnosticprinter_print_verbose(retptr, this.
|
|
276
|
+
wasm.diagnosticprinter_print_verbose(retptr, this.__wbg_ptr, addHeapObject(diagnostic));
|
|
277
277
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
278
278
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
279
279
|
if (r1) {
|
|
@@ -287,6 +287,8 @@ export class DiagnosticPrinter {
|
|
|
287
287
|
* @returns {string}
|
|
288
288
|
*/
|
|
289
289
|
finish() {
|
|
290
|
+
let deferred2_0;
|
|
291
|
+
let deferred2_1;
|
|
290
292
|
try {
|
|
291
293
|
const ptr = this.__destroy_into_raw();
|
|
292
294
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -295,34 +297,33 @@ export class DiagnosticPrinter {
|
|
|
295
297
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
296
298
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
297
299
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
298
|
-
var
|
|
299
|
-
var
|
|
300
|
+
var ptr1 = r0;
|
|
301
|
+
var len1 = r1;
|
|
300
302
|
if (r3) {
|
|
301
|
-
|
|
303
|
+
ptr1 = 0; len1 = 0;
|
|
302
304
|
throw takeObject(r2);
|
|
303
305
|
}
|
|
304
|
-
|
|
306
|
+
deferred2_0 = ptr1;
|
|
307
|
+
deferred2_1 = len1;
|
|
308
|
+
return getStringFromWasm0(ptr1, len1);
|
|
305
309
|
} finally {
|
|
306
310
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
307
|
-
wasm.__wbindgen_free(
|
|
311
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
308
312
|
}
|
|
309
313
|
}
|
|
310
314
|
}
|
|
315
|
+
|
|
316
|
+
const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
317
|
+
? { register: () => {}, unregister: () => {} }
|
|
318
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0));
|
|
311
319
|
/**
|
|
312
320
|
*/
|
|
313
321
|
export class Workspace {
|
|
314
322
|
|
|
315
|
-
static __wrap(ptr) {
|
|
316
|
-
const obj = Object.create(Workspace.prototype);
|
|
317
|
-
obj.ptr = ptr;
|
|
318
|
-
|
|
319
|
-
return obj;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
323
|
__destroy_into_raw() {
|
|
323
|
-
const ptr = this.
|
|
324
|
-
this.
|
|
325
|
-
|
|
324
|
+
const ptr = this.__wbg_ptr;
|
|
325
|
+
this.__wbg_ptr = 0;
|
|
326
|
+
WorkspaceFinalization.unregister(this);
|
|
326
327
|
return ptr;
|
|
327
328
|
}
|
|
328
329
|
|
|
@@ -334,7 +335,8 @@ export class Workspace {
|
|
|
334
335
|
*/
|
|
335
336
|
constructor() {
|
|
336
337
|
const ret = wasm.workspace_new();
|
|
337
|
-
|
|
338
|
+
this.__wbg_ptr = ret >>> 0;
|
|
339
|
+
return this;
|
|
338
340
|
}
|
|
339
341
|
/**
|
|
340
342
|
* @param {SupportsFeatureParams} params
|
|
@@ -343,7 +345,7 @@ export class Workspace {
|
|
|
343
345
|
fileFeatures(params) {
|
|
344
346
|
try {
|
|
345
347
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
346
|
-
wasm.workspace_fileFeatures(retptr, this.
|
|
348
|
+
wasm.workspace_fileFeatures(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
347
349
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
348
350
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
349
351
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -361,7 +363,7 @@ export class Workspace {
|
|
|
361
363
|
updateSettings(params) {
|
|
362
364
|
try {
|
|
363
365
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
364
|
-
wasm.workspace_updateSettings(retptr, this.
|
|
366
|
+
wasm.workspace_updateSettings(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
365
367
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
366
368
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
367
369
|
if (r1) {
|
|
@@ -372,12 +374,31 @@ export class Workspace {
|
|
|
372
374
|
}
|
|
373
375
|
}
|
|
374
376
|
/**
|
|
377
|
+
* @param {RegisterProjectFolderParams} params
|
|
378
|
+
* @returns {ProjectKey}
|
|
379
|
+
*/
|
|
380
|
+
registerProjectFolder(params) {
|
|
381
|
+
try {
|
|
382
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
383
|
+
wasm.workspace_registerProjectFolder(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
384
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
385
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
386
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
387
|
+
if (r2) {
|
|
388
|
+
throw takeObject(r1);
|
|
389
|
+
}
|
|
390
|
+
return takeObject(r0);
|
|
391
|
+
} finally {
|
|
392
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
375
396
|
* @param {OpenFileParams} params
|
|
376
397
|
*/
|
|
377
398
|
openFile(params) {
|
|
378
399
|
try {
|
|
379
400
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
380
|
-
wasm.workspace_openFile(retptr, this.
|
|
401
|
+
wasm.workspace_openFile(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
381
402
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
382
403
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
383
404
|
if (r1) {
|
|
@@ -392,23 +413,27 @@ export class Workspace {
|
|
|
392
413
|
* @returns {string}
|
|
393
414
|
*/
|
|
394
415
|
getFileContent(params) {
|
|
416
|
+
let deferred2_0;
|
|
417
|
+
let deferred2_1;
|
|
395
418
|
try {
|
|
396
419
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
397
|
-
wasm.workspace_getFileContent(retptr, this.
|
|
420
|
+
wasm.workspace_getFileContent(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
398
421
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
399
422
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
400
423
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
401
424
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
402
|
-
var
|
|
403
|
-
var
|
|
425
|
+
var ptr1 = r0;
|
|
426
|
+
var len1 = r1;
|
|
404
427
|
if (r3) {
|
|
405
|
-
|
|
428
|
+
ptr1 = 0; len1 = 0;
|
|
406
429
|
throw takeObject(r2);
|
|
407
430
|
}
|
|
408
|
-
|
|
431
|
+
deferred2_0 = ptr1;
|
|
432
|
+
deferred2_1 = len1;
|
|
433
|
+
return getStringFromWasm0(ptr1, len1);
|
|
409
434
|
} finally {
|
|
410
435
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
411
|
-
wasm.__wbindgen_free(
|
|
436
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
412
437
|
}
|
|
413
438
|
}
|
|
414
439
|
/**
|
|
@@ -418,7 +443,7 @@ export class Workspace {
|
|
|
418
443
|
getSyntaxTree(params) {
|
|
419
444
|
try {
|
|
420
445
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
421
|
-
wasm.workspace_getSyntaxTree(retptr, this.
|
|
446
|
+
wasm.workspace_getSyntaxTree(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
422
447
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
423
448
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
424
449
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -435,23 +460,27 @@ export class Workspace {
|
|
|
435
460
|
* @returns {string}
|
|
436
461
|
*/
|
|
437
462
|
getControlFlowGraph(params) {
|
|
463
|
+
let deferred2_0;
|
|
464
|
+
let deferred2_1;
|
|
438
465
|
try {
|
|
439
466
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
440
|
-
wasm.workspace_getControlFlowGraph(retptr, this.
|
|
467
|
+
wasm.workspace_getControlFlowGraph(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
441
468
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
442
469
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
443
470
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
444
471
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
445
|
-
var
|
|
446
|
-
var
|
|
472
|
+
var ptr1 = r0;
|
|
473
|
+
var len1 = r1;
|
|
447
474
|
if (r3) {
|
|
448
|
-
|
|
475
|
+
ptr1 = 0; len1 = 0;
|
|
449
476
|
throw takeObject(r2);
|
|
450
477
|
}
|
|
451
|
-
|
|
478
|
+
deferred2_0 = ptr1;
|
|
479
|
+
deferred2_1 = len1;
|
|
480
|
+
return getStringFromWasm0(ptr1, len1);
|
|
452
481
|
} finally {
|
|
453
482
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
454
|
-
wasm.__wbindgen_free(
|
|
483
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
455
484
|
}
|
|
456
485
|
}
|
|
457
486
|
/**
|
|
@@ -459,23 +488,27 @@ export class Workspace {
|
|
|
459
488
|
* @returns {string}
|
|
460
489
|
*/
|
|
461
490
|
getFormatterIr(params) {
|
|
491
|
+
let deferred2_0;
|
|
492
|
+
let deferred2_1;
|
|
462
493
|
try {
|
|
463
494
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
464
|
-
wasm.workspace_getFormatterIr(retptr, this.
|
|
495
|
+
wasm.workspace_getFormatterIr(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
465
496
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
466
497
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
467
498
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
468
499
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
469
|
-
var
|
|
470
|
-
var
|
|
500
|
+
var ptr1 = r0;
|
|
501
|
+
var len1 = r1;
|
|
471
502
|
if (r3) {
|
|
472
|
-
|
|
503
|
+
ptr1 = 0; len1 = 0;
|
|
473
504
|
throw takeObject(r2);
|
|
474
505
|
}
|
|
475
|
-
|
|
506
|
+
deferred2_0 = ptr1;
|
|
507
|
+
deferred2_1 = len1;
|
|
508
|
+
return getStringFromWasm0(ptr1, len1);
|
|
476
509
|
} finally {
|
|
477
510
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
478
|
-
wasm.__wbindgen_free(
|
|
511
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
479
512
|
}
|
|
480
513
|
}
|
|
481
514
|
/**
|
|
@@ -484,7 +517,7 @@ export class Workspace {
|
|
|
484
517
|
changeFile(params) {
|
|
485
518
|
try {
|
|
486
519
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
487
|
-
wasm.workspace_changeFile(retptr, this.
|
|
520
|
+
wasm.workspace_changeFile(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
488
521
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
489
522
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
490
523
|
if (r1) {
|
|
@@ -500,7 +533,7 @@ export class Workspace {
|
|
|
500
533
|
closeFile(params) {
|
|
501
534
|
try {
|
|
502
535
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
503
|
-
wasm.workspace_closeFile(retptr, this.
|
|
536
|
+
wasm.workspace_closeFile(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
504
537
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
505
538
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
506
539
|
if (r1) {
|
|
@@ -517,7 +550,7 @@ export class Workspace {
|
|
|
517
550
|
pullDiagnostics(params) {
|
|
518
551
|
try {
|
|
519
552
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
520
|
-
wasm.workspace_pullDiagnostics(retptr, this.
|
|
553
|
+
wasm.workspace_pullDiagnostics(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
521
554
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
522
555
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
523
556
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -536,7 +569,7 @@ export class Workspace {
|
|
|
536
569
|
pullActions(params) {
|
|
537
570
|
try {
|
|
538
571
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
539
|
-
wasm.workspace_pullActions(retptr, this.
|
|
572
|
+
wasm.workspace_pullActions(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
540
573
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
541
574
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
542
575
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -555,7 +588,7 @@ export class Workspace {
|
|
|
555
588
|
formatFile(params) {
|
|
556
589
|
try {
|
|
557
590
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
558
|
-
wasm.workspace_formatFile(retptr, this.
|
|
591
|
+
wasm.workspace_formatFile(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
559
592
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
560
593
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
561
594
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -574,7 +607,7 @@ export class Workspace {
|
|
|
574
607
|
formatRange(params) {
|
|
575
608
|
try {
|
|
576
609
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
577
|
-
wasm.workspace_formatRange(retptr, this.
|
|
610
|
+
wasm.workspace_formatRange(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
578
611
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
579
612
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
580
613
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -593,7 +626,7 @@ export class Workspace {
|
|
|
593
626
|
formatOnType(params) {
|
|
594
627
|
try {
|
|
595
628
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
596
|
-
wasm.workspace_formatOnType(retptr, this.
|
|
629
|
+
wasm.workspace_formatOnType(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
597
630
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
598
631
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
599
632
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -612,7 +645,7 @@ export class Workspace {
|
|
|
612
645
|
fixFile(params) {
|
|
613
646
|
try {
|
|
614
647
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
615
|
-
wasm.workspace_fixFile(retptr, this.
|
|
648
|
+
wasm.workspace_fixFile(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
616
649
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
617
650
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
618
651
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -631,7 +664,7 @@ export class Workspace {
|
|
|
631
664
|
organizeImports(params) {
|
|
632
665
|
try {
|
|
633
666
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
634
|
-
wasm.workspace_organizeImports(retptr, this.
|
|
667
|
+
wasm.workspace_organizeImports(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
635
668
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
636
669
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
637
670
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -650,7 +683,7 @@ export class Workspace {
|
|
|
650
683
|
rename(params) {
|
|
651
684
|
try {
|
|
652
685
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
653
|
-
wasm.workspace_rename(retptr, this.
|
|
686
|
+
wasm.workspace_rename(retptr, this.__wbg_ptr, addHeapObject(params));
|
|
654
687
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
655
688
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
656
689
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -675,30 +708,6 @@ export function __wbindgen_is_bigint(arg0) {
|
|
|
675
708
|
return ret;
|
|
676
709
|
};
|
|
677
710
|
|
|
678
|
-
export function __wbindgen_bigint_from_i64(arg0) {
|
|
679
|
-
const ret = arg0;
|
|
680
|
-
return addHeapObject(ret);
|
|
681
|
-
};
|
|
682
|
-
|
|
683
|
-
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
684
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
685
|
-
return ret;
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
export function __wbindgen_object_drop_ref(arg0) {
|
|
689
|
-
takeObject(arg0);
|
|
690
|
-
};
|
|
691
|
-
|
|
692
|
-
export function __wbindgen_bigint_from_u64(arg0) {
|
|
693
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
694
|
-
return addHeapObject(ret);
|
|
695
|
-
};
|
|
696
|
-
|
|
697
|
-
export function __wbindgen_error_new(arg0, arg1) {
|
|
698
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
699
|
-
return addHeapObject(ret);
|
|
700
|
-
};
|
|
701
|
-
|
|
702
711
|
export function __wbindgen_number_get(arg0, arg1) {
|
|
703
712
|
const obj = getObject(arg1);
|
|
704
713
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
@@ -709,10 +718,10 @@ export function __wbindgen_number_get(arg0, arg1) {
|
|
|
709
718
|
export function __wbindgen_string_get(arg0, arg1) {
|
|
710
719
|
const obj = getObject(arg1);
|
|
711
720
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
712
|
-
var
|
|
713
|
-
var
|
|
714
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
715
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
721
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
722
|
+
var len1 = WASM_VECTOR_LEN;
|
|
723
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
724
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
716
725
|
};
|
|
717
726
|
|
|
718
727
|
export function __wbindgen_is_object(arg0) {
|
|
@@ -726,6 +735,30 @@ export function __wbindgen_in(arg0, arg1) {
|
|
|
726
735
|
return ret;
|
|
727
736
|
};
|
|
728
737
|
|
|
738
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
739
|
+
takeObject(arg0);
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
export function __wbindgen_bigint_from_i64(arg0) {
|
|
743
|
+
const ret = arg0;
|
|
744
|
+
return addHeapObject(ret);
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
748
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
749
|
+
return ret;
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
export function __wbindgen_bigint_from_u64(arg0) {
|
|
753
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
754
|
+
return addHeapObject(ret);
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
|
758
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
759
|
+
return addHeapObject(ret);
|
|
760
|
+
};
|
|
761
|
+
|
|
729
762
|
export function __wbindgen_is_string(arg0) {
|
|
730
763
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
731
764
|
return ret;
|
|
@@ -736,6 +769,16 @@ export function __wbindgen_is_undefined(arg0) {
|
|
|
736
769
|
return ret;
|
|
737
770
|
};
|
|
738
771
|
|
|
772
|
+
export function __wbindgen_as_number(arg0) {
|
|
773
|
+
const ret = +getObject(arg0);
|
|
774
|
+
return ret;
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
|
778
|
+
const ret = getObject(arg0);
|
|
779
|
+
return addHeapObject(ret);
|
|
780
|
+
};
|
|
781
|
+
|
|
739
782
|
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
740
783
|
const ret = getObject(arg0) == getObject(arg1);
|
|
741
784
|
return ret;
|
|
@@ -746,31 +789,26 @@ export function __wbindgen_number_new(arg0) {
|
|
|
746
789
|
return addHeapObject(ret);
|
|
747
790
|
};
|
|
748
791
|
|
|
749
|
-
export function __wbindgen_object_clone_ref(arg0) {
|
|
750
|
-
const ret = getObject(arg0);
|
|
751
|
-
return addHeapObject(ret);
|
|
752
|
-
};
|
|
753
|
-
|
|
754
792
|
export function __wbindgen_string_new(arg0, arg1) {
|
|
755
793
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
756
794
|
return addHeapObject(ret);
|
|
757
795
|
};
|
|
758
796
|
|
|
759
|
-
export function
|
|
797
|
+
export function __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) {
|
|
760
798
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
761
799
|
return addHeapObject(ret);
|
|
762
800
|
};
|
|
763
801
|
|
|
764
|
-
export function
|
|
802
|
+
export function __wbg_set_f975102236d3c502(arg0, arg1, arg2) {
|
|
765
803
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
766
804
|
};
|
|
767
805
|
|
|
768
|
-
export function
|
|
806
|
+
export function __wbg_String_b9412f8799faab3e(arg0, arg1) {
|
|
769
807
|
const ret = String(getObject(arg1));
|
|
770
|
-
const
|
|
771
|
-
const
|
|
772
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
773
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
808
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
809
|
+
const len1 = WASM_VECTOR_LEN;
|
|
810
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
811
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
774
812
|
};
|
|
775
813
|
|
|
776
814
|
export function __wbg_new_abda76e883ba8a5f() {
|
|
@@ -780,149 +818,164 @@ export function __wbg_new_abda76e883ba8a5f() {
|
|
|
780
818
|
|
|
781
819
|
export function __wbg_stack_658279fe44541cf6(arg0, arg1) {
|
|
782
820
|
const ret = getObject(arg1).stack;
|
|
783
|
-
const
|
|
784
|
-
const
|
|
785
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
786
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
821
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
822
|
+
const len1 = WASM_VECTOR_LEN;
|
|
823
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
824
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
787
825
|
};
|
|
788
826
|
|
|
789
827
|
export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
|
|
828
|
+
let deferred0_0;
|
|
829
|
+
let deferred0_1;
|
|
790
830
|
try {
|
|
831
|
+
deferred0_0 = arg0;
|
|
832
|
+
deferred0_1 = arg1;
|
|
791
833
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
792
834
|
} finally {
|
|
793
|
-
wasm.__wbindgen_free(
|
|
835
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
794
836
|
}
|
|
795
837
|
};
|
|
796
838
|
|
|
797
|
-
export function
|
|
839
|
+
export function __wbindgen_is_function(arg0) {
|
|
840
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
841
|
+
return ret;
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
export function __wbg_get_bd8e338fbd5f5cc8(arg0, arg1) {
|
|
798
845
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
799
846
|
return addHeapObject(ret);
|
|
800
847
|
};
|
|
801
848
|
|
|
802
|
-
export function
|
|
849
|
+
export function __wbg_length_cd7af8117672b8b8(arg0) {
|
|
803
850
|
const ret = getObject(arg0).length;
|
|
804
851
|
return ret;
|
|
805
852
|
};
|
|
806
853
|
|
|
807
|
-
export function
|
|
854
|
+
export function __wbg_new_16b304a2cfa7ff4a() {
|
|
808
855
|
const ret = new Array();
|
|
809
856
|
return addHeapObject(ret);
|
|
810
857
|
};
|
|
811
858
|
|
|
812
|
-
export function
|
|
813
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
814
|
-
return ret;
|
|
815
|
-
};
|
|
816
|
-
|
|
817
|
-
export function __wbg_new_f841cc6f2098f4b5() {
|
|
859
|
+
export function __wbg_new_d9bc3a0147634640() {
|
|
818
860
|
const ret = new Map();
|
|
819
861
|
return addHeapObject(ret);
|
|
820
862
|
};
|
|
821
863
|
|
|
822
|
-
export function
|
|
864
|
+
export function __wbg_next_40fc327bfc8770e6(arg0) {
|
|
823
865
|
const ret = getObject(arg0).next;
|
|
824
866
|
return addHeapObject(ret);
|
|
825
867
|
};
|
|
826
868
|
|
|
827
|
-
export function
|
|
869
|
+
export function __wbg_next_196c84450b364254() { return handleError(function (arg0) {
|
|
828
870
|
const ret = getObject(arg0).next();
|
|
829
871
|
return addHeapObject(ret);
|
|
830
872
|
}, arguments) };
|
|
831
873
|
|
|
832
|
-
export function
|
|
874
|
+
export function __wbg_done_298b57d23c0fc80c(arg0) {
|
|
833
875
|
const ret = getObject(arg0).done;
|
|
834
876
|
return ret;
|
|
835
877
|
};
|
|
836
878
|
|
|
837
|
-
export function
|
|
879
|
+
export function __wbg_value_d93c65011f51a456(arg0) {
|
|
838
880
|
const ret = getObject(arg0).value;
|
|
839
881
|
return addHeapObject(ret);
|
|
840
882
|
};
|
|
841
883
|
|
|
842
|
-
export function
|
|
884
|
+
export function __wbg_iterator_2cee6dadfd956dfa() {
|
|
843
885
|
const ret = Symbol.iterator;
|
|
844
886
|
return addHeapObject(ret);
|
|
845
887
|
};
|
|
846
888
|
|
|
847
|
-
export function
|
|
889
|
+
export function __wbg_get_e3c254076557e348() { return handleError(function (arg0, arg1) {
|
|
848
890
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
849
891
|
return addHeapObject(ret);
|
|
850
892
|
}, arguments) };
|
|
851
893
|
|
|
852
|
-
export function
|
|
894
|
+
export function __wbg_call_27c0f87801dedf93() { return handleError(function (arg0, arg1) {
|
|
853
895
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
854
896
|
return addHeapObject(ret);
|
|
855
897
|
}, arguments) };
|
|
856
898
|
|
|
857
|
-
export function
|
|
899
|
+
export function __wbg_new_72fb9a18b5ae2624() {
|
|
858
900
|
const ret = new Object();
|
|
859
901
|
return addHeapObject(ret);
|
|
860
902
|
};
|
|
861
903
|
|
|
862
|
-
export function
|
|
904
|
+
export function __wbg_set_d4638f722068f043(arg0, arg1, arg2) {
|
|
863
905
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
864
906
|
};
|
|
865
907
|
|
|
866
|
-
export function
|
|
908
|
+
export function __wbg_isArray_2ab64d95e09ea0ae(arg0) {
|
|
867
909
|
const ret = Array.isArray(getObject(arg0));
|
|
868
910
|
return ret;
|
|
869
911
|
};
|
|
870
912
|
|
|
871
|
-
export function
|
|
913
|
+
export function __wbg_instanceof_ArrayBuffer_836825be07d4c9d2(arg0) {
|
|
872
914
|
let result;
|
|
873
915
|
try {
|
|
874
916
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
875
|
-
} catch {
|
|
917
|
+
} catch (_) {
|
|
876
918
|
result = false;
|
|
877
919
|
}
|
|
878
920
|
const ret = result;
|
|
879
921
|
return ret;
|
|
880
922
|
};
|
|
881
923
|
|
|
882
|
-
export function
|
|
924
|
+
export function __wbg_new_28c511d9baebfa89(arg0, arg1) {
|
|
883
925
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
884
926
|
return addHeapObject(ret);
|
|
885
927
|
};
|
|
886
928
|
|
|
887
|
-
export function
|
|
929
|
+
export function __wbg_instanceof_Map_87917e0a7aaf4012(arg0) {
|
|
930
|
+
let result;
|
|
931
|
+
try {
|
|
932
|
+
result = getObject(arg0) instanceof Map;
|
|
933
|
+
} catch (_) {
|
|
934
|
+
result = false;
|
|
935
|
+
}
|
|
936
|
+
const ret = result;
|
|
937
|
+
return ret;
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
export function __wbg_set_8417257aaedc936b(arg0, arg1, arg2) {
|
|
888
941
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
889
942
|
return addHeapObject(ret);
|
|
890
943
|
};
|
|
891
944
|
|
|
892
|
-
export function
|
|
945
|
+
export function __wbg_isSafeInteger_f7b04ef02296c4d2(arg0) {
|
|
893
946
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
894
947
|
return ret;
|
|
895
948
|
};
|
|
896
949
|
|
|
897
|
-
export function
|
|
950
|
+
export function __wbg_entries_95cc2c823b285a09(arg0) {
|
|
898
951
|
const ret = Object.entries(getObject(arg0));
|
|
899
952
|
return addHeapObject(ret);
|
|
900
953
|
};
|
|
901
954
|
|
|
902
|
-
export function
|
|
955
|
+
export function __wbg_buffer_12d079cc21e14bdb(arg0) {
|
|
903
956
|
const ret = getObject(arg0).buffer;
|
|
904
957
|
return addHeapObject(ret);
|
|
905
958
|
};
|
|
906
959
|
|
|
907
|
-
export function
|
|
960
|
+
export function __wbg_new_63b92bc8671ed464(arg0) {
|
|
908
961
|
const ret = new Uint8Array(getObject(arg0));
|
|
909
962
|
return addHeapObject(ret);
|
|
910
963
|
};
|
|
911
964
|
|
|
912
|
-
export function
|
|
965
|
+
export function __wbg_set_a47bac70306a19a7(arg0, arg1, arg2) {
|
|
913
966
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
914
967
|
};
|
|
915
968
|
|
|
916
|
-
export function
|
|
969
|
+
export function __wbg_length_c20a40f15020d68a(arg0) {
|
|
917
970
|
const ret = getObject(arg0).length;
|
|
918
971
|
return ret;
|
|
919
972
|
};
|
|
920
973
|
|
|
921
|
-
export function
|
|
974
|
+
export function __wbg_instanceof_Uint8Array_2b3bbecd033d19f6(arg0) {
|
|
922
975
|
let result;
|
|
923
976
|
try {
|
|
924
977
|
result = getObject(arg0) instanceof Uint8Array;
|
|
925
|
-
} catch {
|
|
978
|
+
} catch (_) {
|
|
926
979
|
result = false;
|
|
927
980
|
}
|
|
928
981
|
const ret = result;
|
|
@@ -938,10 +991,10 @@ export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
|
938
991
|
|
|
939
992
|
export function __wbindgen_debug_string(arg0, arg1) {
|
|
940
993
|
const ret = debugString(getObject(arg1));
|
|
941
|
-
const
|
|
942
|
-
const
|
|
943
|
-
getInt32Memory0()[arg0 / 4 + 1] =
|
|
944
|
-
getInt32Memory0()[arg0 / 4 + 0] =
|
|
994
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
995
|
+
const len1 = WASM_VECTOR_LEN;
|
|
996
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
997
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
945
998
|
};
|
|
946
999
|
|
|
947
1000
|
export function __wbindgen_throw(arg0, arg1) {
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/wasm-bundler","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.7.
|
|
1
|
+
{"name":"@biomejs/wasm-bundler","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_bg.js","biome_wasm.d.ts"],"module":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","sideEffects":["./biome_wasm.js","./snippets/*"],"keywords":["parser","linter","formatter"]}
|