@influxdata/flux-lsp-browser
Advanced tools
Comparing version 0.6.7 to 0.6.8
import * as wasm from './flux-lsp-browser_bg.wasm'; | ||
const heap = new Array(32).fill(undefined); | ||
heap.push(undefined, null, true, false); | ||
function getObject(idx) { return heap[idx]; } | ||
let heap_next = heap.length; | ||
function dropObject(idx) { | ||
if (idx < 36) return; | ||
heap[idx] = heap_next; | ||
heap_next = idx; | ||
} | ||
function takeObject(idx) { | ||
const ret = getObject(idx); | ||
dropObject(idx); | ||
return ret; | ||
} | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
@@ -21,8 +41,2 @@ | ||
const heap = new Array(32).fill(undefined); | ||
heap.push(undefined, null, true, false); | ||
let heap_next = heap.length; | ||
function addHeapObject(obj) { | ||
@@ -37,4 +51,2 @@ if (heap_next === heap.length) heap.push(heap.length + 1); | ||
function getObject(idx) { return heap[idx]; } | ||
let WASM_VECTOR_LEN = 0; | ||
@@ -105,18 +117,2 @@ | ||
function dropObject(idx) { | ||
if (idx < 36) return; | ||
heap[idx] = heap_next; | ||
heap_next = idx; | ||
} | ||
function takeObject(idx) { | ||
const ret = getObject(idx); | ||
dropObject(idx); | ||
return ret; | ||
} | ||
function isLikeNone(x) { | ||
return x === undefined || x === null; | ||
} | ||
function makeMutClosure(arg0, arg1, dtor, f) { | ||
@@ -146,13 +142,14 @@ const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
} | ||
function __wbg_adapter_16(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2ac29b0b725d1223(arg0, arg1, addHeapObject(arg2)); | ||
function __wbg_adapter_18(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h62e79821aebc1a05(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
/** | ||
* Parses a string representation of a json file and returns the corresponding JsValue representation | ||
* @param {string} s | ||
* Parse flux into an AST representation. The AST will be generated regardless | ||
* of valid flux. As such, no error handling is needed. | ||
* @param {string} script | ||
* @returns {any} | ||
*/ | ||
export function parse(s) { | ||
var ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
export function parse(script) { | ||
var ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
@@ -164,3 +161,6 @@ var ret = wasm.parse(ptr0, len0); | ||
/** | ||
* Format a JS file. | ||
* Format a flux script from AST. | ||
* | ||
* In the event that the flux is invalid syntax, an Err will be returned, | ||
* which will translate into a JavaScript exception being thrown. | ||
* @param {any} js_file | ||
@@ -189,4 +189,4 @@ * @returns {string} | ||
} | ||
function __wbg_adapter_39(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h85a439292e5266e6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
function __wbg_adapter_41(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__hcecb2ef704413fb0(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
@@ -321,2 +321,6 @@ | ||
export function __wbindgen_object_drop_ref(arg0) { | ||
takeObject(arg0); | ||
}; | ||
export function __wbindgen_json_parse(arg0, arg1) { | ||
@@ -336,6 +340,2 @@ var ret = JSON.parse(getStringFromWasm0(arg0, arg1)); | ||
export function __wbindgen_object_drop_ref(arg0) { | ||
takeObject(arg0); | ||
}; | ||
export function __wbindgen_object_clone_ref(arg0) { | ||
@@ -351,9 +351,5 @@ var ret = getObject(arg0); | ||
export function __wbindgen_string_get(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
var ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr0; | ||
export function __wbindgen_string_new(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
@@ -409,3 +405,3 @@ | ||
try { | ||
return __wbg_adapter_39(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_41(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -441,6 +437,10 @@ state0.a = a; | ||
export function __wbindgen_closure_wrapper8077(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 1150, __wbg_adapter_16); | ||
export function __wbindgen_rethrow(arg0) { | ||
throw takeObject(arg0); | ||
}; | ||
export function __wbindgen_closure_wrapper8095(arg0, arg1, arg2) { | ||
var ret = makeMutClosure(arg0, arg1, 1148, __wbg_adapter_18); | ||
return addHeapObject(ret); | ||
}; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Parses a string representation of a json file and returns the corresponding JsValue representation | ||
* @param {string} s | ||
* Parse flux into an AST representation. The AST will be generated regardless | ||
* of valid flux. As such, no error handling is needed. | ||
* @param {string} script | ||
* @returns {any} | ||
*/ | ||
export function parse(s: string): any; | ||
export function parse(script: string): any; | ||
/** | ||
* Format a JS file. | ||
* Format a flux script from AST. | ||
* | ||
* In the event that the flux is invalid syntax, an Err will be returned, | ||
* which will translate into a JavaScript exception being thrown. | ||
* @param {any} js_file | ||
@@ -12,0 +16,0 @@ * @returns {string} |
@@ -7,3 +7,3 @@ { | ||
"description": "LSP support for the flux language", | ||
"version": "0.6.7", | ||
"version": "0.6.8", | ||
"license": "MIT", | ||
@@ -10,0 +10,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3370870
434