MCPcopy Index your code
hub / github.com/CodeGraphContext/CodeGraphContext / init

Method init

website/public/wasm/web-tree-sitter.js:3172–3177  ·  view source on GitHub ↗

* This must always be called before creating a Parser. * * You can optionally pass in options to configure the Wasm module, the most common * one being `locateFile` to help the module find the `.wasm` file.

(moduleOptions)

Source from the content-addressed store, hash-verified

3170 * one being `locateFile` to help the module find the `.wasm` file.
3171 */
3172 static async init(moduleOptions) {
3173 setModule(await initializeBinding(moduleOptions));
3174 TRANSFER_BUFFER = C._ts_init();
3175 LANGUAGE_VERSION = C.getValue(TRANSFER_BUFFER, "i32");
3176 MIN_COMPATIBLE_VERSION = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32");
3177 }
3178 /**
3179 * Create a new parser.
3180 */

Callers 3

receiveInstanceFunction · 0.45
AppFunction · 0.45
initParserFunction · 0.45

Calls 3

setModuleFunction · 0.85
initializeBindingFunction · 0.85
getValueMethod · 0.45

Tested by

no test coverage detected