MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / copy

Method copy

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

Create a shallow copy of the syntax tree. This is very fast.

()

Source from the content-addressed store, hash-verified

237 }
238 /** Create a shallow copy of the syntax tree. This is very fast. */
239 copy() {
240 const address = C._ts_tree_copy(this[0]);
241 return new _Tree(INTERNAL, address, this.language, this.textCallback);
242 }
243 /** Delete the syntax tree, freeing its resources. */
244 delete() {
245 C._ts_tree_delete(this[0]);

Callers 13

runMethod · 0.45
_translate_queryMethod · 0.45
load_configFunction · 0.45
reset_configFunction · 0.45
ensure_config_fileFunction · 0.45
test_language_goldenFunction · 0.45
_test_envFunction · 0.45
test_compare_scenariosFunction · 0.45
run_cgcMethod · 0.45
test_clean_upMethod · 0.45
PRReviewerFunction · 0.45

Calls

no outgoing calls

Tested by 5

test_language_goldenFunction · 0.36
_test_envFunction · 0.36
test_compare_scenariosFunction · 0.36
run_cgcMethod · 0.36
test_clean_upMethod · 0.36