MCPcopy Create free account
hub / github.com/tree-sitter/tree-sitter-javascript / Init

Function Init

bindings/node/binding.cc:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10};
11
12Napi::Object Init(Napi::Env env, Napi::Object exports) {
13 auto language = Napi::External<TSLanguage>::New(env, tree_sitter_javascript());
14 language.TypeTag(&LANGUAGE_TYPE_TAG);
15 exports["language"] = language;
16 return exports;
17}
18
19NODE_API_MODULE(tree_sitter_javascript_binding, Init)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…