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

Method child

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

* Get the node's child at the given index, where zero represents the first child. * * This method is fairly fast, but its cost is technically log(n), so if * you might be iterating over a long list of children, you should use * Node#children instead.

(index)

Source from the content-addressed store, hash-verified

771 * {@link Node#children} instead.
772 */
773 child(index) {
774 marshalNode(this);
775 C._ts_node_child_wasm(this.tree[0], index);
776 return unmarshalNode(this.tree);
777 }
778 /**
779 * Get this node's *named* child at the given index.
780 *

Callers 6

_find_classesMethod · 0.45
firstChildMethod · 0.45
lastChildMethod · 0.45
traverseFunction · 0.45
getPythonDocstringFunction · 0.45
processNextBatchFunction · 0.45

Calls 2

marshalNodeFunction · 0.85
unmarshalNodeFunction · 0.85

Tested by

no test coverage detected