@master/css-binding-wasm-tooling 0.0.0-stage → 2.0.1
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/artifacts/mastercss_binding_wasm_tooling.d.ts +195 -0
- package/artifacts/mastercss_binding_wasm_tooling.js +1331 -0
- package/artifacts/mastercss_binding_wasm_tooling_bg.wasm +0 -0
- package/artifacts/mastercss_binding_wasm_tooling_bg.wasm.d.ts +75 -0
- package/dist/artifacts/mastercss_binding_wasm_tooling.js +1098 -0
- package/dist/index.js +126 -0
- package/dist/provider-node.d.ts +3 -0
- package/dist/provider-node.js +21 -0
- package/dist/provider.d.ts +7 -0
- package/dist/provider.js +44 -0
- package/package.json +46 -5
- package/README.md +0 -3
|
@@ -0,0 +1,1098 @@
|
|
|
1
|
+
// artifacts/mastercss_binding_wasm_tooling.js
|
|
2
|
+
var ToolingLanguageSession = class {
|
|
3
|
+
__destroy_into_raw() {
|
|
4
|
+
const ptr = this.__wbg_ptr;
|
|
5
|
+
this.__wbg_ptr = 0;
|
|
6
|
+
ToolingLanguageSessionFinalization.unregister(this);
|
|
7
|
+
return ptr;
|
|
8
|
+
}
|
|
9
|
+
free() {
|
|
10
|
+
const ptr = this.__destroy_into_raw();
|
|
11
|
+
wasm.__wbg_toolinglanguagesession_free(ptr, 0);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @param {any} request
|
|
15
|
+
* @returns {any}
|
|
16
|
+
*/
|
|
17
|
+
analyzeDocument(request) {
|
|
18
|
+
const ret = wasm.toolinglanguagesession_analyzeDocument(this.__wbg_ptr, request);
|
|
19
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
20
|
+
return takeFromExternrefTable0(ret[0]);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @param {number} id
|
|
24
|
+
*/
|
|
25
|
+
cancelDocument(id) {
|
|
26
|
+
wasm.toolinglanguagesession_cancelDocument(this.__wbg_ptr, id);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @param {string[]} class_names
|
|
30
|
+
* @param {any} native_support
|
|
31
|
+
* @returns {any}
|
|
32
|
+
*/
|
|
33
|
+
classifyClassNames(class_names, native_support) {
|
|
34
|
+
const ptr0 = passArrayJsValueToWasm0(class_names, wasm.__wbindgen_malloc);
|
|
35
|
+
const len0 = WASM_VECTOR_LEN;
|
|
36
|
+
const ret = wasm.toolinglanguagesession_classifyClassNames(this.__wbg_ptr, ptr0, len0, native_support);
|
|
37
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
38
|
+
return takeFromExternrefTable0(ret[0]);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @param {string} color_token
|
|
42
|
+
* @returns {any}
|
|
43
|
+
*/
|
|
44
|
+
colorPresentation(color_token) {
|
|
45
|
+
const ptr0 = passStringToWasm0(color_token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
46
|
+
const len0 = WASM_VECTOR_LEN;
|
|
47
|
+
const ret = wasm.toolinglanguagesession_colorPresentation(this.__wbg_ptr, ptr0, len0);
|
|
48
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
49
|
+
return takeFromExternrefTable0(ret[0]);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @param {any} candidates
|
|
53
|
+
* @returns {any}
|
|
54
|
+
*/
|
|
55
|
+
colorTokens(candidates) {
|
|
56
|
+
const ret = wasm.toolinglanguagesession_colorTokens(this.__wbg_ptr, candidates);
|
|
57
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
58
|
+
return takeFromExternrefTable0(ret[0]);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @returns {any}
|
|
62
|
+
*/
|
|
63
|
+
completionIndex() {
|
|
64
|
+
const ret = wasm.toolinglanguagesession_completionIndex(this.__wbg_ptr);
|
|
65
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
66
|
+
return takeFromExternrefTable0(ret[0]);
|
|
67
|
+
}
|
|
68
|
+
dispose() {
|
|
69
|
+
wasm.toolinglanguagesession_dispose(this.__wbg_ptr);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @param {number} id
|
|
73
|
+
* @param {any} native_support
|
|
74
|
+
* @returns {any}
|
|
75
|
+
*/
|
|
76
|
+
finishDocument(id, native_support) {
|
|
77
|
+
const ret = wasm.toolinglanguagesession_finishDocument(this.__wbg_ptr, id, native_support);
|
|
78
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
79
|
+
return takeFromExternrefTable0(ret[0]);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @param {any} request
|
|
83
|
+
* @returns {any}
|
|
84
|
+
*/
|
|
85
|
+
formatDirectives(request) {
|
|
86
|
+
const ret = wasm.toolinglanguagesession_formatDirectives(this.__wbg_ptr, request);
|
|
87
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
88
|
+
return takeFromExternrefTable0(ret[0]);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @param {string} class_name
|
|
92
|
+
* @param {any} native_support
|
|
93
|
+
* @returns {any}
|
|
94
|
+
*/
|
|
95
|
+
inspectClassName(class_name, native_support) {
|
|
96
|
+
const ptr0 = passStringToWasm0(class_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
97
|
+
const len0 = WASM_VECTOR_LEN;
|
|
98
|
+
const ret = wasm.toolinglanguagesession_inspectClassName(this.__wbg_ptr, ptr0, len0, native_support);
|
|
99
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
100
|
+
return takeFromExternrefTable0(ret[0]);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @param {string[]} class_names
|
|
104
|
+
* @returns {any}
|
|
105
|
+
*/
|
|
106
|
+
nativeDeclarationCandidates(class_names) {
|
|
107
|
+
const ptr0 = passArrayJsValueToWasm0(class_names, wasm.__wbindgen_malloc);
|
|
108
|
+
const len0 = WASM_VECTOR_LEN;
|
|
109
|
+
const ret = wasm.toolinglanguagesession_nativeDeclarationCandidates(this.__wbg_ptr, ptr0, len0);
|
|
110
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
111
|
+
return takeFromExternrefTable0(ret[0]);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @param {any} request
|
|
115
|
+
* @returns {any}
|
|
116
|
+
*/
|
|
117
|
+
nativeDeclarationCompletion(request) {
|
|
118
|
+
const ret = wasm.toolinglanguagesession_nativeDeclarationCompletion(this.__wbg_ptr, request);
|
|
119
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
120
|
+
return takeFromExternrefTable0(ret[0]);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @param {string} manifest_json
|
|
124
|
+
*/
|
|
125
|
+
constructor(manifest_json) {
|
|
126
|
+
const ptr0 = passStringToWasm0(manifest_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
127
|
+
const len0 = WASM_VECTOR_LEN;
|
|
128
|
+
const ret = wasm.toolinglanguagesession_new(ptr0, len0);
|
|
129
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
130
|
+
this.__wbg_ptr = ret[0];
|
|
131
|
+
ToolingLanguageSessionFinalization.register(this, this.__wbg_ptr, this);
|
|
132
|
+
return this;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @param {any} request
|
|
136
|
+
* @returns {any}
|
|
137
|
+
*/
|
|
138
|
+
prepareDocument(request) {
|
|
139
|
+
const ret = wasm.toolinglanguagesession_prepareDocument(this.__wbg_ptr, request);
|
|
140
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
141
|
+
return takeFromExternrefTable0(ret[0]);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @returns {any}
|
|
145
|
+
*/
|
|
146
|
+
tokenFamilies() {
|
|
147
|
+
const ret = wasm.toolinglanguagesession_tokenFamilies(this.__wbg_ptr);
|
|
148
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
149
|
+
return takeFromExternrefTable0(ret[0]);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
if (Symbol.dispose) ToolingLanguageSession.prototype[Symbol.dispose] = ToolingLanguageSession.prototype.free;
|
|
153
|
+
var ToolingLexerSession = class {
|
|
154
|
+
__destroy_into_raw() {
|
|
155
|
+
const ptr = this.__wbg_ptr;
|
|
156
|
+
this.__wbg_ptr = 0;
|
|
157
|
+
ToolingLexerSessionFinalization.unregister(this);
|
|
158
|
+
return ptr;
|
|
159
|
+
}
|
|
160
|
+
free() {
|
|
161
|
+
const ptr = this.__destroy_into_raw();
|
|
162
|
+
wasm.__wbg_toolinglexersession_free(ptr, 0);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @param {any} request
|
|
166
|
+
* @returns {any}
|
|
167
|
+
*/
|
|
168
|
+
analyze(request) {
|
|
169
|
+
const ret = wasm.toolinglexersession_analyze(this.__wbg_ptr, request);
|
|
170
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
171
|
+
return takeFromExternrefTable0(ret[0]);
|
|
172
|
+
}
|
|
173
|
+
dispose() {
|
|
174
|
+
wasm.toolinglexersession_dispose(this.__wbg_ptr);
|
|
175
|
+
}
|
|
176
|
+
constructor() {
|
|
177
|
+
const ret = wasm.toolinglexersession_new();
|
|
178
|
+
this.__wbg_ptr = ret;
|
|
179
|
+
ToolingLexerSessionFinalization.register(this, this.__wbg_ptr, this);
|
|
180
|
+
return this;
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
if (Symbol.dispose) ToolingLexerSession.prototype[Symbol.dispose] = ToolingLexerSession.prototype.free;
|
|
184
|
+
var ToolingLintSession = class {
|
|
185
|
+
__destroy_into_raw() {
|
|
186
|
+
const ptr = this.__wbg_ptr;
|
|
187
|
+
this.__wbg_ptr = 0;
|
|
188
|
+
ToolingLintSessionFinalization.unregister(this);
|
|
189
|
+
return ptr;
|
|
190
|
+
}
|
|
191
|
+
free() {
|
|
192
|
+
const ptr = this.__destroy_into_raw();
|
|
193
|
+
wasm.__wbg_toolinglintsession_free(ptr, 0);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* @param {string} request_json
|
|
197
|
+
* @returns {any}
|
|
198
|
+
*/
|
|
199
|
+
analyzeClassListPolicy(request_json) {
|
|
200
|
+
const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
201
|
+
const len0 = WASM_VECTOR_LEN;
|
|
202
|
+
const ret = wasm.toolinglintsession_analyzeClassListPolicy(this.__wbg_ptr, ptr0, len0);
|
|
203
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
204
|
+
return takeFromExternrefTable0(ret[0]);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @param {string} class_list
|
|
208
|
+
* @param {string[]} class_names
|
|
209
|
+
* @param {any} native_support
|
|
210
|
+
* @param {string[]} invalid_generated_classes
|
|
211
|
+
* @returns {any}
|
|
212
|
+
*/
|
|
213
|
+
analyzeClassList(class_list, class_names, native_support, invalid_generated_classes) {
|
|
214
|
+
const ptr0 = passStringToWasm0(class_list, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
215
|
+
const len0 = WASM_VECTOR_LEN;
|
|
216
|
+
const ptr1 = passArrayJsValueToWasm0(class_names, wasm.__wbindgen_malloc);
|
|
217
|
+
const len1 = WASM_VECTOR_LEN;
|
|
218
|
+
const ptr2 = passArrayJsValueToWasm0(invalid_generated_classes, wasm.__wbindgen_malloc);
|
|
219
|
+
const len2 = WASM_VECTOR_LEN;
|
|
220
|
+
const ret = wasm.toolinglintsession_analyzeClassList(this.__wbg_ptr, ptr0, len0, ptr1, len1, native_support, ptr2, len2);
|
|
221
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
222
|
+
return takeFromExternrefTable0(ret[0]);
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* @param {string[]} class_names
|
|
226
|
+
* @param {any} native_support
|
|
227
|
+
* @param {string[]} invalid_generated_classes
|
|
228
|
+
* @returns {any}
|
|
229
|
+
*/
|
|
230
|
+
analyze(class_names, native_support, invalid_generated_classes) {
|
|
231
|
+
const ptr0 = passArrayJsValueToWasm0(class_names, wasm.__wbindgen_malloc);
|
|
232
|
+
const len0 = WASM_VECTOR_LEN;
|
|
233
|
+
const ptr1 = passArrayJsValueToWasm0(invalid_generated_classes, wasm.__wbindgen_malloc);
|
|
234
|
+
const len1 = WASM_VECTOR_LEN;
|
|
235
|
+
const ret = wasm.toolinglintsession_analyze(this.__wbg_ptr, ptr0, len0, native_support, ptr1, len1);
|
|
236
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
237
|
+
return takeFromExternrefTable0(ret[0]);
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* @param {string[]} class_names
|
|
241
|
+
* @param {any} native_support
|
|
242
|
+
* @param {any} options
|
|
243
|
+
* @returns {any}
|
|
244
|
+
*/
|
|
245
|
+
canonicalClassGroups(class_names, native_support, options) {
|
|
246
|
+
const ptr0 = passArrayJsValueToWasm0(class_names, wasm.__wbindgen_malloc);
|
|
247
|
+
const len0 = WASM_VECTOR_LEN;
|
|
248
|
+
const ret = wasm.toolinglintsession_canonicalClassGroups(this.__wbg_ptr, ptr0, len0, native_support, options);
|
|
249
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
250
|
+
return takeFromExternrefTable0(ret[0]);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* @param {string[]} class_names
|
|
254
|
+
* @param {any} native_support
|
|
255
|
+
* @param {any} options
|
|
256
|
+
* @returns {any}
|
|
257
|
+
*/
|
|
258
|
+
canonicalClassNames(class_names, native_support, options) {
|
|
259
|
+
const ptr0 = passArrayJsValueToWasm0(class_names, wasm.__wbindgen_malloc);
|
|
260
|
+
const len0 = WASM_VECTOR_LEN;
|
|
261
|
+
const ret = wasm.toolinglintsession_canonicalClassNames(this.__wbg_ptr, ptr0, len0, native_support, options);
|
|
262
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
263
|
+
return takeFromExternrefTable0(ret[0]);
|
|
264
|
+
}
|
|
265
|
+
dispose() {
|
|
266
|
+
wasm.toolinglintsession_dispose(this.__wbg_ptr);
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* @param {string} request_json
|
|
270
|
+
* @returns {any}
|
|
271
|
+
*/
|
|
272
|
+
inspectDesignSystem(request_json) {
|
|
273
|
+
const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
274
|
+
const len0 = WASM_VECTOR_LEN;
|
|
275
|
+
const ret = wasm.toolinglintsession_inspectDesignSystem(this.__wbg_ptr, ptr0, len0);
|
|
276
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
277
|
+
return takeFromExternrefTable0(ret[0]);
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* @param {string[]} class_names
|
|
281
|
+
* @returns {any}
|
|
282
|
+
*/
|
|
283
|
+
nativeDeclarationCandidates(class_names) {
|
|
284
|
+
const ptr0 = passArrayJsValueToWasm0(class_names, wasm.__wbindgen_malloc);
|
|
285
|
+
const len0 = WASM_VECTOR_LEN;
|
|
286
|
+
const ret = wasm.toolinglintsession_nativeDeclarationCandidates(this.__wbg_ptr, ptr0, len0);
|
|
287
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
288
|
+
return takeFromExternrefTable0(ret[0]);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* @param {string} manifest_json
|
|
292
|
+
*/
|
|
293
|
+
constructor(manifest_json) {
|
|
294
|
+
const ptr0 = passStringToWasm0(manifest_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
295
|
+
const len0 = WASM_VECTOR_LEN;
|
|
296
|
+
const ret = wasm.toolinglintsession_new(ptr0, len0);
|
|
297
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
298
|
+
this.__wbg_ptr = ret[0];
|
|
299
|
+
ToolingLintSessionFinalization.register(this, this.__wbg_ptr, this);
|
|
300
|
+
return this;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* @param {string[]} class_names
|
|
304
|
+
* @param {any} native_support
|
|
305
|
+
* @param {string[]} invalid_generated_classes
|
|
306
|
+
* @returns {any}
|
|
307
|
+
*/
|
|
308
|
+
rawValueCandidates(class_names, native_support, invalid_generated_classes) {
|
|
309
|
+
const ptr0 = passArrayJsValueToWasm0(class_names, wasm.__wbindgen_malloc);
|
|
310
|
+
const len0 = WASM_VECTOR_LEN;
|
|
311
|
+
const ptr1 = passArrayJsValueToWasm0(invalid_generated_classes, wasm.__wbindgen_malloc);
|
|
312
|
+
const len1 = WASM_VECTOR_LEN;
|
|
313
|
+
const ret = wasm.toolinglintsession_rawValueCandidates(this.__wbg_ptr, ptr0, len0, native_support, ptr1, len1);
|
|
314
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
315
|
+
return takeFromExternrefTable0(ret[0]);
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* @param {any} batch
|
|
319
|
+
* @param {any} rule_errors
|
|
320
|
+
* @returns {any}
|
|
321
|
+
*/
|
|
322
|
+
resolveValidation(batch, rule_errors) {
|
|
323
|
+
const ret = wasm.toolinglintsession_resolveValidation(this.__wbg_ptr, batch, rule_errors);
|
|
324
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
325
|
+
return takeFromExternrefTable0(ret[0]);
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* @param {string} declarations
|
|
329
|
+
* @returns {any}
|
|
330
|
+
*/
|
|
331
|
+
suggestClasses(declarations) {
|
|
332
|
+
const ptr0 = passStringToWasm0(declarations, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
333
|
+
const len0 = WASM_VECTOR_LEN;
|
|
334
|
+
const ret = wasm.toolinglintsession_suggestClasses(this.__wbg_ptr, ptr0, len0);
|
|
335
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
336
|
+
return takeFromExternrefTable0(ret[0]);
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
if (Symbol.dispose) ToolingLintSession.prototype[Symbol.dispose] = ToolingLintSession.prototype.free;
|
|
340
|
+
var ToolingScannerSession = class {
|
|
341
|
+
__destroy_into_raw() {
|
|
342
|
+
const ptr = this.__wbg_ptr;
|
|
343
|
+
this.__wbg_ptr = 0;
|
|
344
|
+
ToolingScannerSessionFinalization.unregister(this);
|
|
345
|
+
return ptr;
|
|
346
|
+
}
|
|
347
|
+
free() {
|
|
348
|
+
const ptr = this.__destroy_into_raw();
|
|
349
|
+
wasm.__wbg_toolingscannersession_free(ptr, 0);
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* @param {string[]} candidates
|
|
353
|
+
* @returns {string[]}
|
|
354
|
+
*/
|
|
355
|
+
collectCandidates(candidates) {
|
|
356
|
+
const ptr0 = passArrayJsValueToWasm0(candidates, wasm.__wbindgen_malloc);
|
|
357
|
+
const len0 = WASM_VECTOR_LEN;
|
|
358
|
+
const ret = wasm.toolingscannersession_collectCandidates(this.__wbg_ptr, ptr0, len0);
|
|
359
|
+
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
360
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
361
|
+
return v2;
|
|
362
|
+
}
|
|
363
|
+
dispose() {
|
|
364
|
+
wasm.toolingscannersession_dispose(this.__wbg_ptr);
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* @param {string[]} class_names
|
|
368
|
+
* @returns {any}
|
|
369
|
+
*/
|
|
370
|
+
ensureClasses(class_names) {
|
|
371
|
+
const ptr0 = passArrayJsValueToWasm0(class_names, wasm.__wbindgen_malloc);
|
|
372
|
+
const len0 = WASM_VECTOR_LEN;
|
|
373
|
+
const ret = wasm.toolingscannersession_ensureClasses(this.__wbg_ptr, ptr0, len0);
|
|
374
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
375
|
+
return takeFromExternrefTable0(ret[0]);
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* @param {string} source
|
|
379
|
+
* @param {string} content
|
|
380
|
+
* @param {any} options
|
|
381
|
+
* @returns {string[]}
|
|
382
|
+
*/
|
|
383
|
+
extractCandidates(source, content, options) {
|
|
384
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
385
|
+
const len0 = WASM_VECTOR_LEN;
|
|
386
|
+
const ptr1 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
387
|
+
const len1 = WASM_VECTOR_LEN;
|
|
388
|
+
const ret = wasm.toolingscannersession_extractCandidates(this.__wbg_ptr, ptr0, len0, ptr1, len1, options);
|
|
389
|
+
if (ret[3]) throw takeFromExternrefTable0(ret[2]);
|
|
390
|
+
var v3 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
391
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
392
|
+
return v3;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* @param {string[]} candidates
|
|
396
|
+
* @param {any} blocklist
|
|
397
|
+
* @returns {string[]}
|
|
398
|
+
*/
|
|
399
|
+
filterCandidates(candidates, blocklist) {
|
|
400
|
+
const ptr0 = passArrayJsValueToWasm0(candidates, wasm.__wbindgen_malloc);
|
|
401
|
+
const len0 = WASM_VECTOR_LEN;
|
|
402
|
+
const ret = wasm.toolingscannersession_filterCandidates(this.__wbg_ptr, ptr0, len0, blocklist);
|
|
403
|
+
if (ret[3]) throw takeFromExternrefTable0(ret[2]);
|
|
404
|
+
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
405
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
406
|
+
return v2;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* @param {string} manifest_json
|
|
410
|
+
*/
|
|
411
|
+
constructor(manifest_json) {
|
|
412
|
+
const ptr0 = passStringToWasm0(manifest_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
413
|
+
const len0 = WASM_VECTOR_LEN;
|
|
414
|
+
const ret = wasm.toolingscannersession_new(ptr0, len0);
|
|
415
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
416
|
+
this.__wbg_ptr = ret[0];
|
|
417
|
+
ToolingScannerSessionFinalization.register(this, this.__wbg_ptr, this);
|
|
418
|
+
return this;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* @param {string} owner
|
|
422
|
+
* @param {any} inputs
|
|
423
|
+
* @returns {any}
|
|
424
|
+
*/
|
|
425
|
+
reconcileSources(owner, inputs) {
|
|
426
|
+
const ptr0 = passStringToWasm0(owner, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
427
|
+
const len0 = WASM_VECTOR_LEN;
|
|
428
|
+
const ret = wasm.toolingscannersession_reconcileSources(this.__wbg_ptr, ptr0, len0, inputs);
|
|
429
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
430
|
+
return takeFromExternrefTable0(ret[0]);
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* @param {string} owner
|
|
434
|
+
* @param {string[]} class_names
|
|
435
|
+
* @returns {boolean}
|
|
436
|
+
*/
|
|
437
|
+
registerNativeClasses(owner, class_names) {
|
|
438
|
+
const ptr0 = passStringToWasm0(owner, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
439
|
+
const len0 = WASM_VECTOR_LEN;
|
|
440
|
+
const ptr1 = passArrayJsValueToWasm0(class_names, wasm.__wbindgen_malloc);
|
|
441
|
+
const len1 = WASM_VECTOR_LEN;
|
|
442
|
+
return wasm.toolingscannersession_registerNativeClasses(this.__wbg_ptr, ptr0, len0, ptr1, len1) !== 0;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* @param {string} owner
|
|
446
|
+
* @returns {any}
|
|
447
|
+
*/
|
|
448
|
+
removeOwner(owner) {
|
|
449
|
+
const ptr0 = passStringToWasm0(owner, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
450
|
+
const len0 = WASM_VECTOR_LEN;
|
|
451
|
+
const ret = wasm.toolingscannersession_removeOwner(this.__wbg_ptr, ptr0, len0);
|
|
452
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
453
|
+
return takeFromExternrefTable0(ret[0]);
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* @param {string} source
|
|
457
|
+
* @param {any} options
|
|
458
|
+
* @returns {any}
|
|
459
|
+
*/
|
|
460
|
+
removeSource(source, options) {
|
|
461
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
462
|
+
const len0 = WASM_VECTOR_LEN;
|
|
463
|
+
const ret = wasm.toolingscannersession_removeSource(this.__wbg_ptr, ptr0, len0, options);
|
|
464
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
465
|
+
return takeFromExternrefTable0(ret[0]);
|
|
466
|
+
}
|
|
467
|
+
reset() {
|
|
468
|
+
const ret = wasm.toolingscannersession_reset(this.__wbg_ptr);
|
|
469
|
+
if (ret[1]) throw takeFromExternrefTable0(ret[0]);
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* @param {string} source
|
|
473
|
+
* @param {string} content
|
|
474
|
+
* @param {string[]} candidates
|
|
475
|
+
* @param {any} blocklist
|
|
476
|
+
* @param {any} options
|
|
477
|
+
* @returns {any}
|
|
478
|
+
*/
|
|
479
|
+
scanCandidates(source, content, candidates, blocklist, options) {
|
|
480
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
481
|
+
const len0 = WASM_VECTOR_LEN;
|
|
482
|
+
const ptr1 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
483
|
+
const len1 = WASM_VECTOR_LEN;
|
|
484
|
+
const ptr2 = passArrayJsValueToWasm0(candidates, wasm.__wbindgen_malloc);
|
|
485
|
+
const len2 = WASM_VECTOR_LEN;
|
|
486
|
+
const ret = wasm.toolingscannersession_scanCandidates(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, blocklist, options);
|
|
487
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
488
|
+
return takeFromExternrefTable0(ret[0]);
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* @param {string} source
|
|
492
|
+
* @param {string} content
|
|
493
|
+
* @returns {any}
|
|
494
|
+
*/
|
|
495
|
+
scan(source, content) {
|
|
496
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
497
|
+
const len0 = WASM_VECTOR_LEN;
|
|
498
|
+
const ptr1 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
499
|
+
const len1 = WASM_VECTOR_LEN;
|
|
500
|
+
const ret = wasm.toolingscannersession_scan(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
501
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
502
|
+
return takeFromExternrefTable0(ret[0]);
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* @returns {any}
|
|
506
|
+
*/
|
|
507
|
+
state() {
|
|
508
|
+
const ret = wasm.toolingscannersession_state(this.__wbg_ptr);
|
|
509
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
510
|
+
return takeFromExternrefTable0(ret[0]);
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
if (Symbol.dispose) ToolingScannerSession.prototype[Symbol.dispose] = ToolingScannerSession.prototype.free;
|
|
514
|
+
var ToolingSourceSession = class {
|
|
515
|
+
__destroy_into_raw() {
|
|
516
|
+
const ptr = this.__wbg_ptr;
|
|
517
|
+
this.__wbg_ptr = 0;
|
|
518
|
+
ToolingSourceSessionFinalization.unregister(this);
|
|
519
|
+
return ptr;
|
|
520
|
+
}
|
|
521
|
+
free() {
|
|
522
|
+
const ptr = this.__destroy_into_raw();
|
|
523
|
+
wasm.__wbg_toolingsourcesession_free(ptr, 0);
|
|
524
|
+
}
|
|
525
|
+
dispose() {
|
|
526
|
+
wasm.toolingsourcesession_dispose(this.__wbg_ptr);
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* @param {any} request
|
|
530
|
+
* @returns {any}
|
|
531
|
+
*/
|
|
532
|
+
extract(request) {
|
|
533
|
+
const ret = wasm.toolingsourcesession_extract(this.__wbg_ptr, request);
|
|
534
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
535
|
+
return takeFromExternrefTable0(ret[0]);
|
|
536
|
+
}
|
|
537
|
+
constructor() {
|
|
538
|
+
const ret = wasm.toolingsourcesession_new();
|
|
539
|
+
this.__wbg_ptr = ret;
|
|
540
|
+
ToolingSourceSessionFinalization.register(this, this.__wbg_ptr, this);
|
|
541
|
+
return this;
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
if (Symbol.dispose) ToolingSourceSession.prototype[Symbol.dispose] = ToolingSourceSession.prototype.free;
|
|
545
|
+
var ToolingValidatorSession = class {
|
|
546
|
+
__destroy_into_raw() {
|
|
547
|
+
const ptr = this.__wbg_ptr;
|
|
548
|
+
this.__wbg_ptr = 0;
|
|
549
|
+
ToolingValidatorSessionFinalization.unregister(this);
|
|
550
|
+
return ptr;
|
|
551
|
+
}
|
|
552
|
+
free() {
|
|
553
|
+
const ptr = this.__destroy_into_raw();
|
|
554
|
+
wasm.__wbg_toolingvalidatorsession_free(ptr, 0);
|
|
555
|
+
}
|
|
556
|
+
dispose() {
|
|
557
|
+
wasm.toolingvalidatorsession_dispose(this.__wbg_ptr);
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* @param {string[]} class_names
|
|
561
|
+
* @param {any} native_support
|
|
562
|
+
* @returns {any}
|
|
563
|
+
*/
|
|
564
|
+
generateClasses(class_names, native_support) {
|
|
565
|
+
const ptr0 = passArrayJsValueToWasm0(class_names, wasm.__wbindgen_malloc);
|
|
566
|
+
const len0 = WASM_VECTOR_LEN;
|
|
567
|
+
const ret = wasm.toolingvalidatorsession_generateClasses(this.__wbg_ptr, ptr0, len0, native_support);
|
|
568
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
569
|
+
return takeFromExternrefTable0(ret[0]);
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* @param {string[]} class_names
|
|
573
|
+
* @returns {any}
|
|
574
|
+
*/
|
|
575
|
+
nativeDeclarationCandidates(class_names) {
|
|
576
|
+
const ptr0 = passArrayJsValueToWasm0(class_names, wasm.__wbindgen_malloc);
|
|
577
|
+
const len0 = WASM_VECTOR_LEN;
|
|
578
|
+
const ret = wasm.toolingvalidatorsession_nativeDeclarationCandidates(this.__wbg_ptr, ptr0, len0);
|
|
579
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
580
|
+
return takeFromExternrefTable0(ret[0]);
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* @param {string} manifest_json
|
|
584
|
+
*/
|
|
585
|
+
constructor(manifest_json) {
|
|
586
|
+
const ptr0 = passStringToWasm0(manifest_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
587
|
+
const len0 = WASM_VECTOR_LEN;
|
|
588
|
+
const ret = wasm.toolingvalidatorsession_new(ptr0, len0);
|
|
589
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
590
|
+
this.__wbg_ptr = ret[0];
|
|
591
|
+
ToolingValidatorSessionFinalization.register(this, this.__wbg_ptr, this);
|
|
592
|
+
return this;
|
|
593
|
+
}
|
|
594
|
+
};
|
|
595
|
+
if (Symbol.dispose) ToolingValidatorSession.prototype[Symbol.dispose] = ToolingValidatorSession.prototype.free;
|
|
596
|
+
/**
|
|
597
|
+
* @returns {any}
|
|
598
|
+
*/
|
|
599
|
+
function bindingInfo() {
|
|
600
|
+
const ret = wasm.bindingInfo();
|
|
601
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
602
|
+
return takeFromExternrefTable0(ret[0]);
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* @param {any} input
|
|
606
|
+
* @returns {any}
|
|
607
|
+
*/
|
|
608
|
+
function createInspectionReport(input) {
|
|
609
|
+
const ret = wasm.createInspectionReport(input);
|
|
610
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
611
|
+
return takeFromExternrefTable0(ret[0]);
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* @param {string} source
|
|
615
|
+
* @param {string} content
|
|
616
|
+
* @returns {any}
|
|
617
|
+
*/
|
|
618
|
+
function extractAstroClasses(source, content) {
|
|
619
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
620
|
+
const len0 = WASM_VECTOR_LEN;
|
|
621
|
+
const ptr1 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
622
|
+
const len1 = WASM_VECTOR_LEN;
|
|
623
|
+
const ret = wasm.extractAstroClasses(ptr0, len0, ptr1, len1);
|
|
624
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
625
|
+
return takeFromExternrefTable0(ret[0]);
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* @param {string} content
|
|
629
|
+
* @returns {any}
|
|
630
|
+
*/
|
|
631
|
+
function extractClassCandidates(content) {
|
|
632
|
+
const ptr0 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
633
|
+
const len0 = WASM_VECTOR_LEN;
|
|
634
|
+
const ret = wasm.extractClassCandidates(ptr0, len0);
|
|
635
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
636
|
+
return takeFromExternrefTable0(ret[0]);
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* @param {string} source
|
|
640
|
+
* @param {string} content
|
|
641
|
+
* @returns {any}
|
|
642
|
+
*/
|
|
643
|
+
function extractHTMLClasses(source, content) {
|
|
644
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
645
|
+
const len0 = WASM_VECTOR_LEN;
|
|
646
|
+
const ptr1 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
647
|
+
const len1 = WASM_VECTOR_LEN;
|
|
648
|
+
const ret = wasm.extractHTMLClasses(ptr0, len0, ptr1, len1);
|
|
649
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
650
|
+
return takeFromExternrefTable0(ret[0]);
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* @param {string} source
|
|
654
|
+
* @param {string} content
|
|
655
|
+
* @returns {any}
|
|
656
|
+
*/
|
|
657
|
+
function extractOxcClasses(source, content) {
|
|
658
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
659
|
+
const len0 = WASM_VECTOR_LEN;
|
|
660
|
+
const ptr1 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
661
|
+
const len1 = WASM_VECTOR_LEN;
|
|
662
|
+
const ret = wasm.extractOxcClasses(ptr0, len0, ptr1, len1);
|
|
663
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
664
|
+
return takeFromExternrefTable0(ret[0]);
|
|
665
|
+
}
|
|
666
|
+
function __wbg_get_imports() {
|
|
667
|
+
return {
|
|
668
|
+
__proto__: null,
|
|
669
|
+
"./mastercss_binding_wasm_tooling_bg.js": {
|
|
670
|
+
__proto__: null,
|
|
671
|
+
__wbg_Error_67e7344beaa85059: function(arg0, arg1) {
|
|
672
|
+
return Error(getStringFromWasm0(arg0, arg1));
|
|
673
|
+
},
|
|
674
|
+
__wbg_Number_c54e7112a3fa7e3e: function(arg0) {
|
|
675
|
+
return Number(arg0);
|
|
676
|
+
},
|
|
677
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
678
|
+
const ptr1 = passStringToWasm0(String(arg1), wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
679
|
+
const len1 = WASM_VECTOR_LEN;
|
|
680
|
+
getDataViewMemory0().setInt32(arg0 + 4, len1, true);
|
|
681
|
+
getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
|
|
682
|
+
},
|
|
683
|
+
__wbg___wbindgen_bigint_get_as_i64_b482365c149396c8: function(arg0, arg1) {
|
|
684
|
+
const v = arg1;
|
|
685
|
+
const ret = typeof v === "bigint" ? v : void 0;
|
|
686
|
+
getDataViewMemory0().setBigInt64(arg0 + 8, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
687
|
+
getDataViewMemory0().setInt32(arg0 + 0, !isLikeNone(ret), true);
|
|
688
|
+
},
|
|
689
|
+
__wbg___wbindgen_boolean_get_7a12af2b3f899c5a: function(arg0) {
|
|
690
|
+
const v = arg0;
|
|
691
|
+
const ret = typeof v === "boolean" ? v : void 0;
|
|
692
|
+
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
|
693
|
+
},
|
|
694
|
+
__wbg___wbindgen_debug_string_0e68cf47c9cbd9b0: function(arg0, arg1) {
|
|
695
|
+
const ptr1 = passStringToWasm0(debugString(arg1), wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
696
|
+
const len1 = WASM_VECTOR_LEN;
|
|
697
|
+
getDataViewMemory0().setInt32(arg0 + 4, len1, true);
|
|
698
|
+
getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
|
|
699
|
+
},
|
|
700
|
+
__wbg___wbindgen_in_50072d4d6e45c193: function(arg0, arg1) {
|
|
701
|
+
return arg0 in arg1;
|
|
702
|
+
},
|
|
703
|
+
__wbg___wbindgen_is_bigint_60fc0336cb14f5d7: function(arg0) {
|
|
704
|
+
return typeof arg0 === "bigint";
|
|
705
|
+
},
|
|
706
|
+
__wbg___wbindgen_is_function_fcda5e3902d732fe: function(arg0) {
|
|
707
|
+
return typeof arg0 === "function";
|
|
708
|
+
},
|
|
709
|
+
__wbg___wbindgen_is_null_5160b3e381865372: function(arg0) {
|
|
710
|
+
return arg0 === null;
|
|
711
|
+
},
|
|
712
|
+
__wbg___wbindgen_is_object_edb6b15aa3afe12e: function(arg0) {
|
|
713
|
+
const val = arg0;
|
|
714
|
+
return typeof val === "object" && val !== null;
|
|
715
|
+
},
|
|
716
|
+
__wbg___wbindgen_is_string_c4f7cb494a2a21f1: function(arg0) {
|
|
717
|
+
return typeof arg0 === "string";
|
|
718
|
+
},
|
|
719
|
+
__wbg___wbindgen_is_undefined_8c687d0b90d5b524: function(arg0) {
|
|
720
|
+
return arg0 === void 0;
|
|
721
|
+
},
|
|
722
|
+
__wbg___wbindgen_jsval_eq_9fdcd3c0a860dd3b: function(arg0, arg1) {
|
|
723
|
+
return arg0 === arg1;
|
|
724
|
+
},
|
|
725
|
+
__wbg___wbindgen_jsval_loose_eq_3c30021c243b64cd: function(arg0, arg1) {
|
|
726
|
+
return arg0 == arg1;
|
|
727
|
+
},
|
|
728
|
+
__wbg___wbindgen_number_get_1dc732b810cb937c: function(arg0, arg1) {
|
|
729
|
+
const obj = arg1;
|
|
730
|
+
const ret = typeof obj === "number" ? obj : void 0;
|
|
731
|
+
getDataViewMemory0().setFloat64(arg0 + 8, isLikeNone(ret) ? 0 : ret, true);
|
|
732
|
+
getDataViewMemory0().setInt32(arg0 + 0, !isLikeNone(ret), true);
|
|
733
|
+
},
|
|
734
|
+
__wbg___wbindgen_string_get_92ab86bb19cbc12f: function(arg0, arg1) {
|
|
735
|
+
const obj = arg1;
|
|
736
|
+
const ret = typeof obj === "string" ? obj : void 0;
|
|
737
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
738
|
+
var len1 = WASM_VECTOR_LEN;
|
|
739
|
+
getDataViewMemory0().setInt32(arg0 + 4, len1, true);
|
|
740
|
+
getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
|
|
741
|
+
},
|
|
742
|
+
__wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
|
|
743
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
744
|
+
},
|
|
745
|
+
__wbg_call_269c5566fbede3eb: function() {
|
|
746
|
+
return handleError(function(arg0, arg1) {
|
|
747
|
+
return arg0.call(arg1);
|
|
748
|
+
}, arguments);
|
|
749
|
+
},
|
|
750
|
+
__wbg_done_cffed884d87aa22e: function(arg0) {
|
|
751
|
+
return arg0.done;
|
|
752
|
+
},
|
|
753
|
+
__wbg_entries_972a87586902cf87: function(arg0) {
|
|
754
|
+
return Object.entries(arg0);
|
|
755
|
+
},
|
|
756
|
+
__wbg_get_6cf5a4d4d8ad3c5a: function() {
|
|
757
|
+
return handleError(function(arg0, arg1) {
|
|
758
|
+
return Reflect.get(arg0, arg1);
|
|
759
|
+
}, arguments);
|
|
760
|
+
},
|
|
761
|
+
__wbg_get_b1f0ab13c737f856: function(arg0, arg1) {
|
|
762
|
+
return arg0[arg1 >>> 0];
|
|
763
|
+
},
|
|
764
|
+
__wbg_get_unchecked_363572bdd397d473: function(arg0, arg1) {
|
|
765
|
+
return arg0[arg1 >>> 0];
|
|
766
|
+
},
|
|
767
|
+
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
768
|
+
return arg0[arg1];
|
|
769
|
+
},
|
|
770
|
+
__wbg_instanceof_ArrayBuffer_d4ff01f8247925ae: function(arg0) {
|
|
771
|
+
let result;
|
|
772
|
+
try {
|
|
773
|
+
result = arg0 instanceof ArrayBuffer;
|
|
774
|
+
} catch (_) {
|
|
775
|
+
result = false;
|
|
776
|
+
}
|
|
777
|
+
return result;
|
|
778
|
+
},
|
|
779
|
+
__wbg_instanceof_Map_1ff6a2b54c899f0d: function(arg0) {
|
|
780
|
+
let result;
|
|
781
|
+
try {
|
|
782
|
+
result = arg0 instanceof Map;
|
|
783
|
+
} catch (_) {
|
|
784
|
+
result = false;
|
|
785
|
+
}
|
|
786
|
+
return result;
|
|
787
|
+
},
|
|
788
|
+
__wbg_instanceof_Uint8Array_598adc0fef426aa8: function(arg0) {
|
|
789
|
+
let result;
|
|
790
|
+
try {
|
|
791
|
+
result = arg0 instanceof Uint8Array;
|
|
792
|
+
} catch (_) {
|
|
793
|
+
result = false;
|
|
794
|
+
}
|
|
795
|
+
return result;
|
|
796
|
+
},
|
|
797
|
+
__wbg_isArray_5674713bb7b79043: function(arg0) {
|
|
798
|
+
return Array.isArray(arg0);
|
|
799
|
+
},
|
|
800
|
+
__wbg_isSafeInteger_8f51c743827d1ec5: function(arg0) {
|
|
801
|
+
return Number.isSafeInteger(arg0);
|
|
802
|
+
},
|
|
803
|
+
__wbg_iterator_22ddeb808cf55a6f: function() {
|
|
804
|
+
return Symbol.iterator;
|
|
805
|
+
},
|
|
806
|
+
__wbg_length_31bdaf014f5fbde2: function(arg0) {
|
|
807
|
+
return arg0.length;
|
|
808
|
+
},
|
|
809
|
+
__wbg_length_4e1adc0d42e23620: function(arg0) {
|
|
810
|
+
return arg0.length;
|
|
811
|
+
},
|
|
812
|
+
__wbg_new_1da3429bc3c4541c: function(arg0) {
|
|
813
|
+
return new Uint8Array(arg0);
|
|
814
|
+
},
|
|
815
|
+
__wbg_new_8d36e20aa758e411: function() {
|
|
816
|
+
return /* @__PURE__ */ new Map();
|
|
817
|
+
},
|
|
818
|
+
__wbg_new_bebc3f4757acf305: function() {
|
|
819
|
+
return /* @__PURE__ */ new Object();
|
|
820
|
+
},
|
|
821
|
+
__wbg_new_ffa92086ea89f79c: function() {
|
|
822
|
+
return new Array();
|
|
823
|
+
},
|
|
824
|
+
__wbg_next_95053e306b1c3aed: function(arg0) {
|
|
825
|
+
return arg0.next;
|
|
826
|
+
},
|
|
827
|
+
__wbg_next_f31ecb8646d2c605: function() {
|
|
828
|
+
return handleError(function(arg0) {
|
|
829
|
+
return arg0.next();
|
|
830
|
+
}, arguments);
|
|
831
|
+
},
|
|
832
|
+
__wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
|
|
833
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
834
|
+
},
|
|
835
|
+
__wbg_set_13d25b81ab403f5e: function(arg0, arg1, arg2) {
|
|
836
|
+
arg0[arg1 >>> 0] = arg2;
|
|
837
|
+
},
|
|
838
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
839
|
+
arg0[arg1] = arg2;
|
|
840
|
+
},
|
|
841
|
+
__wbg_set_bf6dde4923b9b059: function(arg0, arg1, arg2) {
|
|
842
|
+
return arg0.set(arg1, arg2);
|
|
843
|
+
},
|
|
844
|
+
__wbg_value_c227f843d21da141: function(arg0) {
|
|
845
|
+
return arg0.value;
|
|
846
|
+
},
|
|
847
|
+
__wbindgen_generic_0000000000000001: function(arg0) {
|
|
848
|
+
return arg0;
|
|
849
|
+
},
|
|
850
|
+
__wbindgen_generic_0000000000000002: function(arg0) {
|
|
851
|
+
return arg0;
|
|
852
|
+
},
|
|
853
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
854
|
+
return getStringFromWasm0(arg0, arg1);
|
|
855
|
+
},
|
|
856
|
+
__wbindgen_generic_0000000000000004: function(arg0) {
|
|
857
|
+
return BigInt.asUintN(64, arg0);
|
|
858
|
+
},
|
|
859
|
+
__wbindgen_init_externref_table: function() {
|
|
860
|
+
const table = wasm.__wbindgen_externrefs;
|
|
861
|
+
const offset = table.grow(4);
|
|
862
|
+
table.set(0, void 0);
|
|
863
|
+
table.set(offset + 0, void 0);
|
|
864
|
+
table.set(offset + 1, null);
|
|
865
|
+
table.set(offset + 2, true);
|
|
866
|
+
table.set(offset + 3, false);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
const ToolingLanguageSessionFinalization = typeof FinalizationRegistry === "undefined" ? {
|
|
872
|
+
register: () => {},
|
|
873
|
+
unregister: () => {}
|
|
874
|
+
} : new FinalizationRegistry((ptr) => wasm.__wbg_toolinglanguagesession_free(ptr, 1));
|
|
875
|
+
const ToolingLexerSessionFinalization = typeof FinalizationRegistry === "undefined" ? {
|
|
876
|
+
register: () => {},
|
|
877
|
+
unregister: () => {}
|
|
878
|
+
} : new FinalizationRegistry((ptr) => wasm.__wbg_toolinglexersession_free(ptr, 1));
|
|
879
|
+
const ToolingLintSessionFinalization = typeof FinalizationRegistry === "undefined" ? {
|
|
880
|
+
register: () => {},
|
|
881
|
+
unregister: () => {}
|
|
882
|
+
} : new FinalizationRegistry((ptr) => wasm.__wbg_toolinglintsession_free(ptr, 1));
|
|
883
|
+
const ToolingScannerSessionFinalization = typeof FinalizationRegistry === "undefined" ? {
|
|
884
|
+
register: () => {},
|
|
885
|
+
unregister: () => {}
|
|
886
|
+
} : new FinalizationRegistry((ptr) => wasm.__wbg_toolingscannersession_free(ptr, 1));
|
|
887
|
+
const ToolingSourceSessionFinalization = typeof FinalizationRegistry === "undefined" ? {
|
|
888
|
+
register: () => {},
|
|
889
|
+
unregister: () => {}
|
|
890
|
+
} : new FinalizationRegistry((ptr) => wasm.__wbg_toolingsourcesession_free(ptr, 1));
|
|
891
|
+
const ToolingValidatorSessionFinalization = typeof FinalizationRegistry === "undefined" ? {
|
|
892
|
+
register: () => {},
|
|
893
|
+
unregister: () => {}
|
|
894
|
+
} : new FinalizationRegistry((ptr) => wasm.__wbg_toolingvalidatorsession_free(ptr, 1));
|
|
895
|
+
function addToExternrefTable0(obj) {
|
|
896
|
+
const idx = wasm.__externref_table_alloc();
|
|
897
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
898
|
+
return idx;
|
|
899
|
+
}
|
|
900
|
+
function debugString(val) {
|
|
901
|
+
const type = typeof val;
|
|
902
|
+
if (type == "number" || type == "boolean" || val == null) return `${val}`;
|
|
903
|
+
if (type == "string") return `"${val}"`;
|
|
904
|
+
if (type == "symbol") {
|
|
905
|
+
const description = val.description;
|
|
906
|
+
if (description == null) return "Symbol";
|
|
907
|
+
else return `Symbol(${description})`;
|
|
908
|
+
}
|
|
909
|
+
if (type == "function") {
|
|
910
|
+
const name = val.name;
|
|
911
|
+
if (typeof name == "string" && name.length > 0) return `Function(${name})`;
|
|
912
|
+
else return "Function";
|
|
913
|
+
}
|
|
914
|
+
if (Array.isArray(val)) {
|
|
915
|
+
const length = val.length;
|
|
916
|
+
let debug = "[";
|
|
917
|
+
if (length > 0) debug += debugString(val[0]);
|
|
918
|
+
for (let i = 1; i < length; i++) debug += ", " + debugString(val[i]);
|
|
919
|
+
debug += "]";
|
|
920
|
+
return debug;
|
|
921
|
+
}
|
|
922
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
923
|
+
let className;
|
|
924
|
+
if (builtInMatches && builtInMatches.length > 1) className = builtInMatches[1];
|
|
925
|
+
else return toString.call(val);
|
|
926
|
+
if (className == "Object") try {
|
|
927
|
+
return "Object(" + JSON.stringify(val) + ")";
|
|
928
|
+
} catch (_) {
|
|
929
|
+
return "Object";
|
|
930
|
+
}
|
|
931
|
+
if (val instanceof Error) return `${val.name}: ${val.message}\n${val.stack}`;
|
|
932
|
+
return className;
|
|
933
|
+
}
|
|
934
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
935
|
+
ptr = ptr >>> 0;
|
|
936
|
+
const mem = getDataViewMemory0();
|
|
937
|
+
const result = [];
|
|
938
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
939
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
940
|
+
return result;
|
|
941
|
+
}
|
|
942
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
943
|
+
ptr = ptr >>> 0;
|
|
944
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
945
|
+
}
|
|
946
|
+
let cachedDataViewMemory0 = null;
|
|
947
|
+
function getDataViewMemory0() {
|
|
948
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
949
|
+
return cachedDataViewMemory0;
|
|
950
|
+
}
|
|
951
|
+
function getStringFromWasm0(ptr, len) {
|
|
952
|
+
return decodeText(ptr >>> 0, len);
|
|
953
|
+
}
|
|
954
|
+
let cachedUint8ArrayMemory0 = null;
|
|
955
|
+
function getUint8ArrayMemory0() {
|
|
956
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
957
|
+
return cachedUint8ArrayMemory0;
|
|
958
|
+
}
|
|
959
|
+
function handleError(f, args) {
|
|
960
|
+
try {
|
|
961
|
+
return f.apply(this, args);
|
|
962
|
+
} catch (e) {
|
|
963
|
+
const idx = addToExternrefTable0(e);
|
|
964
|
+
wasm.__wbindgen_exn_store(idx);
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
function isLikeNone(x) {
|
|
968
|
+
return x === void 0 || x === null;
|
|
969
|
+
}
|
|
970
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
971
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
972
|
+
for (let i = 0; i < array.length; i++) {
|
|
973
|
+
const add = addToExternrefTable0(array[i]);
|
|
974
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
975
|
+
}
|
|
976
|
+
WASM_VECTOR_LEN = array.length;
|
|
977
|
+
return ptr;
|
|
978
|
+
}
|
|
979
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
980
|
+
if (realloc === void 0) {
|
|
981
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
982
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
983
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
984
|
+
WASM_VECTOR_LEN = buf.length;
|
|
985
|
+
return ptr;
|
|
986
|
+
}
|
|
987
|
+
let len = arg.length;
|
|
988
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
989
|
+
const mem = getUint8ArrayMemory0();
|
|
990
|
+
let offset = 0;
|
|
991
|
+
for (; offset < len; offset++) {
|
|
992
|
+
const code = arg.charCodeAt(offset);
|
|
993
|
+
if (code > 127) break;
|
|
994
|
+
mem[ptr + offset] = code;
|
|
995
|
+
}
|
|
996
|
+
if (offset !== len) {
|
|
997
|
+
if (offset !== 0) arg = arg.slice(offset);
|
|
998
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
999
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1000
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1001
|
+
offset += ret.written;
|
|
1002
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1003
|
+
}
|
|
1004
|
+
WASM_VECTOR_LEN = offset;
|
|
1005
|
+
return ptr;
|
|
1006
|
+
}
|
|
1007
|
+
function takeFromExternrefTable0(idx) {
|
|
1008
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1009
|
+
wasm.__externref_table_dealloc(idx);
|
|
1010
|
+
return value;
|
|
1011
|
+
}
|
|
1012
|
+
let cachedTextDecoder = new TextDecoder("utf-8", {
|
|
1013
|
+
ignoreBOM: true,
|
|
1014
|
+
fatal: true
|
|
1015
|
+
});
|
|
1016
|
+
cachedTextDecoder.decode();
|
|
1017
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1018
|
+
let numBytesDecoded = 0;
|
|
1019
|
+
function decodeText(ptr, len) {
|
|
1020
|
+
numBytesDecoded += len;
|
|
1021
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1022
|
+
cachedTextDecoder = new TextDecoder("utf-8", {
|
|
1023
|
+
ignoreBOM: true,
|
|
1024
|
+
fatal: true
|
|
1025
|
+
});
|
|
1026
|
+
cachedTextDecoder.decode();
|
|
1027
|
+
numBytesDecoded = len;
|
|
1028
|
+
}
|
|
1029
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1030
|
+
}
|
|
1031
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1032
|
+
if (!("encodeInto" in cachedTextEncoder)) cachedTextEncoder.encodeInto = function(arg, view) {
|
|
1033
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1034
|
+
view.set(buf);
|
|
1035
|
+
return {
|
|
1036
|
+
read: arg.length,
|
|
1037
|
+
written: buf.length
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
1040
|
+
let WASM_VECTOR_LEN = 0;
|
|
1041
|
+
let wasm;
|
|
1042
|
+
function __wbg_finalize_init(instance, module) {
|
|
1043
|
+
wasm = instance.exports;
|
|
1044
|
+
cachedDataViewMemory0 = null;
|
|
1045
|
+
cachedUint8ArrayMemory0 = null;
|
|
1046
|
+
wasm.__wbindgen_start();
|
|
1047
|
+
return wasm;
|
|
1048
|
+
}
|
|
1049
|
+
async function __wbg_load(module, imports) {
|
|
1050
|
+
if (typeof Response === "function" && module instanceof Response) {
|
|
1051
|
+
if (!module.ok) throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
1052
|
+
if (typeof WebAssembly.instantiateStreaming === "function") try {
|
|
1053
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1054
|
+
} catch (e) {
|
|
1055
|
+
if (expectedResponseType(module.type) && module.headers.get("Content-Type") !== "application/wasm") console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
1056
|
+
else throw e;
|
|
1057
|
+
}
|
|
1058
|
+
const bytes = await module.arrayBuffer();
|
|
1059
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1060
|
+
} else {
|
|
1061
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1062
|
+
if (instance instanceof WebAssembly.Instance) return {
|
|
1063
|
+
instance,
|
|
1064
|
+
module
|
|
1065
|
+
};
|
|
1066
|
+
else return instance;
|
|
1067
|
+
}
|
|
1068
|
+
function expectedResponseType(type) {
|
|
1069
|
+
switch (type) {
|
|
1070
|
+
case "basic":
|
|
1071
|
+
case "cors":
|
|
1072
|
+
case "default": return true;
|
|
1073
|
+
}
|
|
1074
|
+
return false;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
function initSync(module) {
|
|
1078
|
+
if (wasm !== void 0) return wasm;
|
|
1079
|
+
if (module !== void 0) {
|
|
1080
|
+
if (Object.getPrototypeOf(module) === Object.prototype) ({module} = module);
|
|
1081
|
+
else console.warn("using deprecated parameters for `initSync()`; pass a single object instead");
|
|
1082
|
+
}
|
|
1083
|
+
const imports = __wbg_get_imports();
|
|
1084
|
+
if (!(module instanceof WebAssembly.Module)) module = new WebAssembly.Module(module);
|
|
1085
|
+
return __wbg_finalize_init(new WebAssembly.Instance(module, imports), module);
|
|
1086
|
+
}
|
|
1087
|
+
async function __wbg_init(module_or_path) {
|
|
1088
|
+
if (wasm !== void 0) return wasm;
|
|
1089
|
+
if (module_or_path !== void 0) {
|
|
1090
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) ({module_or_path} = module_or_path);
|
|
1091
|
+
else console.warn("using deprecated parameters for the initialization function; pass a single object instead");
|
|
1092
|
+
}
|
|
1093
|
+
const imports = __wbg_get_imports();
|
|
1094
|
+
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) module_or_path = fetch(module_or_path);
|
|
1095
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1096
|
+
return __wbg_finalize_init(instance, module);
|
|
1097
|
+
}
|
|
1098
|
+
export { ToolingLanguageSession, ToolingLexerSession, ToolingLintSession, ToolingScannerSession, ToolingSourceSession, ToolingValidatorSession, bindingInfo, createInspectionReport, __wbg_init as default, extractAstroClasses, extractClassCandidates, extractHTMLClasses, extractOxcClasses, initSync };
|