Ryan Hileman
Ryan Hileman
Actually I think that's naively wrong too. It should be len(default_block) for the first 2/3 section but only 2 for the rest, otherwise you'll get len(default_block)-2 extra ff layers >...
@kleisauke I am in favor of an in-tree LLVM plugin, I keep running into issues with GCC
Setting both self->tree and self->children to None seems weird: https://github.com/tree-sitter/py-tree-sitter/pull/106/commits/621e281105f3698c0a2b66b1fa1ce35f5c59ae1c#diff-a6adb5252016d665f70ccc5cc08b965138ee83044685c0ffe064d8ba4a6a927cR189-R190 I think there's nowhere else in the binding where self->tree is None on a Node, and both node_get_children and node_walk...
do you have any more information? an example script? a traceback?
I have a local branch that compiles languages directly into our library, I'm planning to put more work into that. With either approach, you might want to be mindful of...
Thanks for the contribution! 1. Would you be able to write a test for this? 2. I'm not sure about the `_node_equal` method. Can you speak to cases where node...
I've been trying to think about the API here. I think using `return False` for preventing subtree traversal stops one of the useful cases for tree visitors, which is to...
I agree skipping subtrees is interesting. Let's assume there's a way to signal that, e.g. a `cursor.skip_children()` method. Now your Visitor class mostly reduces to something like this: ```python class...
This needs type stubs, like this for example: https://github.com/andreypopp/py-tree-sitter/commit/73f662145e8f71eb221bc2126bbf28fb071079f1
Blocking this on https://github.com/tree-sitter/tree-sitter-haskell/pull/38 for Windows support in CI