We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
I have been using fields like described in this comment #54 (comment)
They work well for accessing childs, but not parents
As an example, I would expect node.functionNode.parent to be node, but it isn't
node.functionNode.parent
node
Here is a minimum reproducible example, just follow the instructions in the readme https://github.com/sguillia/tree-sitter-repro/blob/master/main.ts
This is slightly related to tree-sitter/tree-sitter-javascript#127 I had some parents with type _expression that went away with some void expressions.
_expression
Is there any way to still access fields parents?
Thank you!
The text was updated successfully, but these errors were encountered:
Fix incorrect parent values after call to child_by_field_name
35f82ce
Refs tree-sitter/node-tree-sitter#61 Refs tree-sitter/tree-sitter-javascript#127
Thanks so much for the reproduction script. This is fixed on Tree-sitter master. I'll close this when I upgrade the Tree-sitter submodule.
Sorry, something went wrong.
3f8dcb2
The fix is in v0.16.1.
No branches or pull requests
Hi!
I have been using fields like described in this comment #54 (comment)
They work well for accessing childs, but not parents
As an example, I would expect
node.functionNode.parent
to benode
, but it isn'tHere is a minimum reproducible example, just follow the instructions in the readme
https://github.com/sguillia/tree-sitter-repro/blob/master/main.ts
This is slightly related to tree-sitter/tree-sitter-javascript#127
I had some parents with type
_expression
that went away with some void expressions.Is there any way to still access fields parents?
Thank you!
The text was updated successfully, but these errors were encountered: