* 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)
| 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 | * |
no test coverage detected