We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 839d783 commit 9cc8445Copy full SHA for 9cc8445
tree_sitter/binding/node.c
@@ -218,7 +218,7 @@ PyObject *node_field_name_for_child(Node *self, PyObject *args) {
218
PyErr_SetString(PyExc_ValueError, "child index must be positive");
219
return NULL;
220
}
221
- if ((uint32_t)index >= ts_node_named_child_count(self->node)) {
+ if ((uint32_t)index >= ts_node_child_count(self->node)) {
222
PyErr_SetString(PyExc_IndexError, "child index out of range");
223
224
0 commit comments