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
tree-sitter --version
No response
All boolean negation seems to be parsed as error_union_type rather than as unary_expression.
error_union_type
unary_expression
Parse the following program:
const b = !true;
Observe the tree:
source_file [0, 0] - [1, 0] variable_declaration [0, 0] - [0, 17] kind: variable_declaration_kind [0, 0] - [0, 5] name: identifier [0, 6] - [0, 7] value: error_union_type [0, 10] - [0, 16] ok: error_union_type [0, 11] - [0, 16] ok: identifier [0, 12] - [0, 16]
source_file [0, 0] - [1, 0] variable_declaration [0, 0] - [0, 16] kind: variable_declaration_kind [0, 0] - [0, 5] name: identifier [0, 6] - [0, 7] value: unary_expression [0, 10] - [0, 15] argument: identifier [0, 11] - [0, 15]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
All boolean negation seems to be parsed as
error_union_type
rather than asunary_expression
.Steps To Reproduce/Bad Parse Tree
Parse the following program:
Observe the tree:
Expected Behavior/Parse Tree
Repro
No response
The text was updated successfully, but these errors were encountered: