Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR attempts to add a few more bindings (with tests) for:
child_count
named_child_count
next_sibling
prev_sibling
next_named_sibling
prev_named_sibling
parent
There is also a binding for
is_missing
but it lacks a test as I don't have sample source for JavaScript or Python that produces that condition.If someone has an example of that I might be able to add a test for it.
BTW, I ran the tests successfully with tree-sitter-python'stree-sitter-cli
dev dependency inpackage.json
set to something in the 0.16.x series as I failed to have the 0.17.x series (i.e. master branch) work with the tests.See below for update.