Skip to content

Commit

Permalink
refactor(node): don't expose internal function
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed May 15, 2024
1 parent 54f923a commit 839d783
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion tree_sitter/binding/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ PyObject *node_child_by_field_name(Node *self, PyObject *args) {
return node_new_internal(state, child, self->tree);
}

PyObject *node_children_by_field_id_internal(Node *self, TSFieldId field_id) {
static PyObject *node_children_by_field_id_internal(Node *self, TSFieldId field_id) {
ModuleState *state = GET_MODULE_STATE(self);
PyObject *result = PyList_New(0);

Expand Down
2 changes: 0 additions & 2 deletions tree_sitter/binding/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ PyObject *node_child_by_field_id(Node *self, PyObject *args);

PyObject *node_child_by_field_name(Node *self, PyObject *args);

PyObject *node_children_by_field_id_internal(Node *self, TSFieldId field_id);

PyObject *node_children_by_field_id(Node *self, PyObject *args);

PyObject *node_children_by_field_name(Node *self, PyObject *args);
Expand Down

0 comments on commit 839d783

Please sign in to comment.