@astral-sh/ruff-wasm-bundler
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -8,3 +8,3 @@ { | ||
"description": "WebAssembly bindings for Ruff", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"license": "MIT", | ||
@@ -11,0 +11,0 @@ "repository": { |
@@ -7,8 +7,4 @@ let wasm; | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
let WASM_VECTOR_LEN = 0; | ||
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
let cachedUint8ArrayMemory0 = null; | ||
@@ -23,22 +19,2 @@ | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); | ||
} | ||
function isLikeNone(x) { | ||
return x === undefined || x === null; | ||
} | ||
let cachedDataViewMemory0 = null; | ||
function getDataViewMemory0() { | ||
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { | ||
cachedDataViewMemory0 = new DataView(wasm.memory.buffer); | ||
} | ||
return cachedDataViewMemory0; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder; | ||
@@ -100,2 +76,41 @@ | ||
let cachedDataViewMemory0 = null; | ||
function getDataViewMemory0() { | ||
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { | ||
cachedDataViewMemory0 = new DataView(wasm.memory.buffer); | ||
} | ||
return cachedDataViewMemory0; | ||
} | ||
function addToExternrefTable0(obj) { | ||
const idx = wasm.__externref_table_alloc(); | ||
wasm.__wbindgen_export_4.set(idx, obj); | ||
return idx; | ||
} | ||
function handleError(f, args) { | ||
try { | ||
return f.apply(this, args); | ||
} catch (e) { | ||
const idx = addToExternrefTable0(e); | ||
wasm.__wbindgen_exn_store(idx); | ||
} | ||
} | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); | ||
} | ||
function isLikeNone(x) { | ||
return x === undefined || x === null; | ||
} | ||
function debugString(val) { | ||
@@ -142,3 +157,3 @@ // primitive types | ||
let className; | ||
if (builtInMatches.length > 1) { | ||
if (builtInMatches && builtInMatches.length > 1) { | ||
className = builtInMatches[1]; | ||
@@ -172,3 +187,3 @@ } else { | ||
function takeFromExternrefTable0(idx) { | ||
const value = wasm.__wbindgen_export_2.get(idx); | ||
const value = wasm.__wbindgen_export_4.get(idx); | ||
wasm.__externref_table_dealloc(idx); | ||
@@ -178,19 +193,2 @@ return value; | ||
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; } | ||
function addToExternrefTable0(obj) { | ||
const idx = wasm.__externref_table_alloc(); | ||
wasm.__wbindgen_export_2.set(idx, obj); | ||
return idx; | ||
} | ||
function handleError(f, args) { | ||
try { | ||
return f.apply(this, args); | ||
} catch (e) { | ||
const idx = addToExternrefTable0(e); | ||
wasm.__wbindgen_exn_store(idx); | ||
} | ||
} | ||
const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined') | ||
@@ -386,173 +384,167 @@ ? { register: () => {}, unregister: () => {} } | ||
export function __wbindgen_is_string(arg0) { | ||
const ret = typeof(arg0) === 'string'; | ||
return ret; | ||
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) { | ||
const ret = String(arg1); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
export function __wbindgen_error_new(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
export function __wbg_buffer_6e1d53ff183194fc(arg0) { | ||
const ret = arg0.buffer; | ||
return ret; | ||
}; | ||
export function __wbindgen_as_number(arg0) { | ||
const ret = +arg0; | ||
export function __wbg_call_3114932863209ca6() { return handleError(function (arg0, arg1) { | ||
const ret = arg0.call(arg1); | ||
return ret; | ||
}, arguments) }; | ||
export function __wbg_debug_347b3d1f33e1c28e(arg0) { | ||
console.debug(arg0); | ||
}; | ||
export function __wbindgen_boolean_get(arg0) { | ||
const v = arg0; | ||
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; | ||
export function __wbg_done_adfd3f40364def50(arg0) { | ||
const ret = arg0.done; | ||
return ret; | ||
}; | ||
export function __wbindgen_is_bigint(arg0) { | ||
const ret = typeof(arg0) === 'bigint'; | ||
export function __wbg_entries_ce82e236f8300a53(arg0) { | ||
const ret = Object.entries(arg0); | ||
return ret; | ||
}; | ||
export function __wbindgen_number_get(arg0, arg1) { | ||
const obj = arg1; | ||
const ret = typeof(obj) === 'number' ? obj : undefined; | ||
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); | ||
export function __wbg_error_2a6b93fdada7ff11(arg0) { | ||
console.error(arg0); | ||
}; | ||
export function __wbindgen_string_get(arg0, arg1) { | ||
const obj = arg1; | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) { | ||
let deferred0_0; | ||
let deferred0_1; | ||
try { | ||
deferred0_0 = arg0; | ||
deferred0_1 = arg1; | ||
console.error(getStringFromWasm0(arg0, arg1)); | ||
} finally { | ||
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); | ||
} | ||
}; | ||
export function __wbindgen_is_object(arg0) { | ||
const val = arg0; | ||
const ret = typeof(val) === 'object' && val !== null; | ||
export function __wbg_fromCodePoint_12f8bccbf527a957() { return handleError(function (arg0) { | ||
const ret = String.fromCodePoint(arg0 >>> 0); | ||
return ret; | ||
}; | ||
}, arguments) }; | ||
export function __wbindgen_in(arg0, arg1) { | ||
const ret = arg0 in arg1; | ||
export function __wbg_get_68aa371864aa301a(arg0, arg1) { | ||
const ret = arg0[arg1 >>> 0]; | ||
return ret; | ||
}; | ||
export function __wbindgen_bigint_from_i64(arg0) { | ||
const ret = arg0; | ||
export function __wbg_get_92a4780a3beb5fe9() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.get(arg0, arg1); | ||
return ret; | ||
}; | ||
}, arguments) }; | ||
export function __wbindgen_jsval_eq(arg0, arg1) { | ||
const ret = arg0 === arg1; | ||
export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) { | ||
const ret = arg0[arg1]; | ||
return ret; | ||
}; | ||
export function __wbindgen_bigint_from_u64(arg0) { | ||
const ret = BigInt.asUintN(64, arg0); | ||
return ret; | ||
export function __wbg_info_b6bd3cb6471c2b4c(arg0) { | ||
console.info(arg0); | ||
}; | ||
export function __wbindgen_is_undefined(arg0) { | ||
const ret = arg0 === undefined; | ||
export function __wbg_instanceof_ArrayBuffer_435fcead703e2827(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof ArrayBuffer; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
}; | ||
export function __wbindgen_jsval_loose_eq(arg0, arg1) { | ||
const ret = arg0 == arg1; | ||
export function __wbg_instanceof_Map_77fd223783fe0068(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof Map; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
}; | ||
export function __wbindgen_number_new(arg0) { | ||
const ret = arg0; | ||
export function __wbg_instanceof_Uint8Array_9b67296cab48238f(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof Uint8Array; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
}; | ||
export function __wbindgen_string_new(arg0, arg1) { | ||
const ret = getStringFromWasm0(arg0, arg1); | ||
export function __wbg_isArray_fcd559a3bcfde1e9(arg0) { | ||
const ret = Array.isArray(arg0); | ||
return ret; | ||
}; | ||
export function __wbg_String_b9412f8799faab3e(arg0, arg1) { | ||
const ret = String(arg1); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
export function __wbg_isSafeInteger_4de146aa53f6e470(arg0) { | ||
const ret = Number.isSafeInteger(arg0); | ||
return ret; | ||
}; | ||
export function __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) { | ||
const ret = arg0[arg1]; | ||
export function __wbg_iterator_7a20c20ce22add0f() { | ||
const ret = Symbol.iterator; | ||
return ret; | ||
}; | ||
export function __wbg_set_f975102236d3c502(arg0, arg1, arg2) { | ||
arg0[arg1] = arg2; | ||
export function __wbg_length_2e63ba34c4121df5(arg0) { | ||
const ret = arg0.length; | ||
return ret; | ||
}; | ||
export const __wbg_debug_5fb96680aecf5dc8 = typeof console.debug == 'function' ? console.debug : notDefined('console.debug'); | ||
export const __wbg_error_8e3928cfb8a43e2b = typeof console.error == 'function' ? console.error : notDefined('console.error'); | ||
export const __wbg_info_530a29cb2e4e3304 = typeof console.info == 'function' ? console.info : notDefined('console.info'); | ||
export const __wbg_log_5bb5f88f245d7762 = typeof console.log == 'function' ? console.log : notDefined('console.log'); | ||
export const __wbg_warn_63bbae1730aead09 = typeof console.warn == 'function' ? console.warn : notDefined('console.warn'); | ||
export function __wbg_new_abda76e883ba8a5f() { | ||
const ret = new Error(); | ||
export function __wbg_length_e74df4881604f1d9(arg0) { | ||
const ret = arg0.length; | ||
return ret; | ||
}; | ||
export function __wbg_stack_658279fe44541cf6(arg0, arg1) { | ||
const ret = arg1.stack; | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
export function __wbg_log_d818ca3cab23fc77(arg0) { | ||
console.log(arg0); | ||
}; | ||
export function __wbg_error_f851667af71bcfc6(arg0, arg1) { | ||
let deferred0_0; | ||
let deferred0_1; | ||
try { | ||
deferred0_0 = arg0; | ||
deferred0_1 = arg1; | ||
console.error(getStringFromWasm0(arg0, arg1)); | ||
} finally { | ||
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); | ||
} | ||
}; | ||
export function __wbindgen_is_function(arg0) { | ||
const ret = typeof(arg0) === 'function'; | ||
export function __wbg_new_076cac58bb698dd4() { | ||
const ret = new Object(); | ||
return ret; | ||
}; | ||
export function __wbg_get_5419cf6b954aa11d(arg0, arg1) { | ||
const ret = arg0[arg1 >>> 0]; | ||
export function __wbg_new_0c28e72025e00594() { | ||
const ret = new Array(); | ||
return ret; | ||
}; | ||
export function __wbg_length_f217bbbf7e8e4df4(arg0) { | ||
const ret = arg0.length; | ||
export function __wbg_new_23362fa370a0a372(arg0) { | ||
const ret = new Uint8Array(arg0); | ||
return ret; | ||
}; | ||
export function __wbg_new_034f913e7636e987() { | ||
const ret = new Array(); | ||
export function __wbg_new_3f616ed16821b4c5() { | ||
const ret = new Map(); | ||
return ret; | ||
}; | ||
export function __wbg_new_7a87a0376e40533b() { | ||
const ret = new Map(); | ||
export function __wbg_new_4d81617a04bc1b5b(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return ret; | ||
}; | ||
export function __wbg_next_13b477da1eaa3897(arg0) { | ||
const ret = arg0.next; | ||
export function __wbg_new_8a6f238a6ece86ea() { | ||
const ret = new Error(); | ||
return ret; | ||
}; | ||
export function __wbg_next_b06e115d1b01e10b() { return handleError(function (arg0) { | ||
export function __wbg_next_c591766a7286b02a() { return handleError(function (arg0) { | ||
const ret = arg0.next(); | ||
@@ -562,53 +554,78 @@ return ret; | ||
export function __wbg_done_983b5ffcaec8c583(arg0) { | ||
const ret = arg0.done; | ||
export function __wbg_next_f387ecc56a94ba00(arg0) { | ||
const ret = arg0.next; | ||
return ret; | ||
}; | ||
export function __wbg_value_2ab8a198c834c26a(arg0) { | ||
const ret = arg0.value; | ||
export function __wbg_set_1d975b42d95fd6c6(arg0, arg1, arg2) { | ||
const ret = arg0.set(arg1, arg2); | ||
return ret; | ||
}; | ||
export function __wbg_iterator_695d699a44d6234c() { | ||
const ret = Symbol.iterator; | ||
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) { | ||
arg0[arg1] = arg2; | ||
}; | ||
export function __wbg_set_7b70226104a82921(arg0, arg1, arg2) { | ||
arg0.set(arg1, arg2 >>> 0); | ||
}; | ||
export function __wbg_set_a1fb6291729caffb(arg0, arg1, arg2) { | ||
arg0[arg1 >>> 0] = arg2; | ||
}; | ||
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) { | ||
const ret = arg1.stack; | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
export function __wbg_value_30db1d77772f3236(arg0) { | ||
const ret = arg0.value; | ||
return ret; | ||
}; | ||
export function __wbg_get_ef828680c64da212() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.get(arg0, arg1); | ||
export function __wbg_warn_a6963915e4da61f6(arg0) { | ||
console.warn(arg0); | ||
}; | ||
export function __wbindgen_as_number(arg0) { | ||
const ret = +arg0; | ||
return ret; | ||
}, arguments) }; | ||
}; | ||
export function __wbg_call_a9ef466721e824f2() { return handleError(function (arg0, arg1) { | ||
const ret = arg0.call(arg1); | ||
export function __wbindgen_bigint_from_i64(arg0) { | ||
const ret = arg0; | ||
return ret; | ||
}, arguments) }; | ||
}; | ||
export function __wbg_new_e69b5f66fda8f13c() { | ||
const ret = new Object(); | ||
export function __wbindgen_bigint_from_u64(arg0) { | ||
const ret = BigInt.asUintN(64, arg0); | ||
return ret; | ||
}; | ||
export function __wbg_set_425e70f7c64ac962(arg0, arg1, arg2) { | ||
arg0[arg1 >>> 0] = arg2; | ||
export function __wbindgen_bigint_get_as_i64(arg0, arg1) { | ||
const v = arg1; | ||
const ret = typeof(v) === 'bigint' ? v : undefined; | ||
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); | ||
}; | ||
export function __wbg_isArray_6f3b47f09adb61b5(arg0) { | ||
const ret = Array.isArray(arg0); | ||
export function __wbindgen_boolean_get(arg0) { | ||
const v = arg0; | ||
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; | ||
return ret; | ||
}; | ||
export function __wbg_instanceof_ArrayBuffer_74945570b4a62ec7(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof ArrayBuffer; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
export function __wbindgen_debug_string(arg0, arg1) { | ||
const ret = debugString(arg1); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
export function __wbg_new_70a2f23d1565c04c(arg0, arg1) { | ||
export function __wbindgen_error_new(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
@@ -618,74 +635,76 @@ return ret; | ||
export function __wbg_instanceof_Map_f96986929e7e89ed(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof Map; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
export function __wbindgen_in(arg0, arg1) { | ||
const ret = arg0 in arg1; | ||
return ret; | ||
}; | ||
export function __wbg_set_277a63e77c89279f(arg0, arg1, arg2) { | ||
const ret = arg0.set(arg1, arg2); | ||
return ret; | ||
export function __wbindgen_init_externref_table() { | ||
const table = wasm.__wbindgen_export_4; | ||
const offset = table.grow(4); | ||
table.set(0, undefined); | ||
table.set(offset + 0, undefined); | ||
table.set(offset + 1, null); | ||
table.set(offset + 2, true); | ||
table.set(offset + 3, false); | ||
; | ||
}; | ||
export function __wbg_isSafeInteger_b9dff570f01a9100(arg0) { | ||
const ret = Number.isSafeInteger(arg0); | ||
export function __wbindgen_is_bigint(arg0) { | ||
const ret = typeof(arg0) === 'bigint'; | ||
return ret; | ||
}; | ||
export function __wbg_entries_c02034de337d3ee2(arg0) { | ||
const ret = Object.entries(arg0); | ||
export function __wbindgen_is_function(arg0) { | ||
const ret = typeof(arg0) === 'function'; | ||
return ret; | ||
}; | ||
export function __wbg_fromCodePoint_a9176a674cd93db9() { return handleError(function (arg0) { | ||
const ret = String.fromCodePoint(arg0 >>> 0); | ||
export function __wbindgen_is_object(arg0) { | ||
const val = arg0; | ||
const ret = typeof(val) === 'object' && val !== null; | ||
return ret; | ||
}, arguments) }; | ||
}; | ||
export function __wbg_buffer_ccaed51a635d8a2d(arg0) { | ||
const ret = arg0.buffer; | ||
export function __wbindgen_is_string(arg0) { | ||
const ret = typeof(arg0) === 'string'; | ||
return ret; | ||
}; | ||
export function __wbg_new_fec2611eb9180f95(arg0) { | ||
const ret = new Uint8Array(arg0); | ||
export function __wbindgen_is_undefined(arg0) { | ||
const ret = arg0 === undefined; | ||
return ret; | ||
}; | ||
export function __wbg_set_ec2fcf81bc573fd9(arg0, arg1, arg2) { | ||
arg0.set(arg1, arg2 >>> 0); | ||
export function __wbindgen_jsval_eq(arg0, arg1) { | ||
const ret = arg0 === arg1; | ||
return ret; | ||
}; | ||
export function __wbg_length_9254c4bd3b9f23c4(arg0) { | ||
const ret = arg0.length; | ||
export function __wbindgen_jsval_loose_eq(arg0, arg1) { | ||
const ret = arg0 == arg1; | ||
return ret; | ||
}; | ||
export function __wbg_instanceof_Uint8Array_df0761410414ef36(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof Uint8Array; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
export function __wbindgen_memory() { | ||
const ret = wasm.memory; | ||
return ret; | ||
}; | ||
export function __wbindgen_bigint_get_as_i64(arg0, arg1) { | ||
const v = arg1; | ||
const ret = typeof(v) === 'bigint' ? v : undefined; | ||
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true); | ||
export function __wbindgen_number_get(arg0, arg1) { | ||
const obj = arg1; | ||
const ret = typeof(obj) === 'number' ? obj : undefined; | ||
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); | ||
}; | ||
export function __wbindgen_debug_string(arg0, arg1) { | ||
const ret = debugString(arg1); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
export function __wbindgen_number_new(arg0) { | ||
const ret = arg0; | ||
return ret; | ||
}; | ||
export function __wbindgen_string_get(arg0, arg1) { | ||
const obj = arg1; | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
@@ -695,21 +714,10 @@ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
export function __wbindgen_throw(arg0, arg1) { | ||
throw new Error(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
export function __wbindgen_memory() { | ||
const ret = wasm.memory; | ||
export function __wbindgen_string_new(arg0, arg1) { | ||
const ret = getStringFromWasm0(arg0, arg1); | ||
return ret; | ||
}; | ||
export function __wbindgen_init_externref_table() { | ||
const table = wasm.__wbindgen_export_2; | ||
const offset = table.grow(4); | ||
table.set(0, undefined); | ||
table.set(offset + 0, undefined); | ||
table.set(offset + 1, null); | ||
table.set(offset + 2, true); | ||
table.set(offset + 3, false); | ||
; | ||
export function __wbindgen_throw(arg0, arg1) { | ||
throw new Error(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
@@ -35,45 +35,14 @@ /* tslint:disable */ | ||
free(): void; | ||
/** | ||
* @returns {string} | ||
*/ | ||
static version(): string; | ||
/** | ||
* @param {any} options | ||
*/ | ||
constructor(options: any); | ||
/** | ||
* @returns {any} | ||
*/ | ||
static defaultSettings(): any; | ||
/** | ||
* @param {string} contents | ||
* @returns {any} | ||
*/ | ||
check(contents: string): any; | ||
/** | ||
* @param {string} contents | ||
* @returns {string} | ||
*/ | ||
format(contents: string): string; | ||
/** | ||
* @param {string} contents | ||
* @returns {string} | ||
*/ | ||
format_ir(contents: string): string; | ||
/** | ||
* @param {string} contents | ||
* @returns {string} | ||
*/ | ||
comments(contents: string): string; | ||
/** | ||
* Parses the content and returns its AST | ||
* @param {string} contents | ||
* @returns {string} | ||
*/ | ||
parse(contents: string): string; | ||
/** | ||
* @param {string} contents | ||
* @returns {string} | ||
*/ | ||
tokens(contents: string): string; | ||
} |
Sorry, the diff of this file is not supported yet
8772227
670