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

Method walk

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

* Create a new TreeCursor starting from this node. * * Note that the given node is considered the root of the cursor, * and the cursor cannot walk outside this node.

()

Source from the content-addressed store, hash-verified

1117 * and the cursor cannot walk outside this node.
1118 */
1119 walk() {
1120 marshalNode(this);
1121 C._ts_tree_cursor_new_wasm(this.tree[0]);
1122 return new TreeCursor(INTERNAL, this.tree);
1123 }
1124 /**
1125 * Edit this node to keep it in-sync with source code that has been edited.
1126 *

Calls 1

marshalNodeFunction · 0.85