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
await_expression
call_expression
type_arguments
tree-sitter --version
No response
When wrote a code snippet like this:
await f()
The tree will be
(program ; [0, 0] - [1, 0] (expression_statement ; [0, 0] - [0, 9] (await_expression ; [0, 0] - [0, 9] (call_expression ; [0, 6] - [0, 9] function: (identifier) ; [0, 6] - [0, 7] arguments: (arguments))))) ; [0, 7] - [0, 9]
But if the function f receives a type argument, like this
f
await f<T>()
The tree will be:
(program ; [0, 0] - [1, 0] (expression_statement ; [0, 0] - [0, 12] (call_expression ; [0, 0] - [0, 12] function: (await_expression ; [0, 0] - [0, 7] (identifier)) ; [0, 6] - [0, 7] type_arguments: (type_arguments ; [0, 7] - [0, 10] (type_identifier)) ; [0, 8] - [0, 9] arguments: (arguments)))) ; [0, 10] - [0, 12]
The location of the node await_expression will be in a different place in this case.
(program (expression_statement (await_expression (call_expression function: (identifier) type_arguments: (type_arguments (type_identifier)) arguments: (arguments)))))
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
When wrote a code snippet like this:
The tree will be
But if the function
f
receives a type argument, like thisThe tree will be:
The location of the node
await_expression
will be in a different place in this case.Steps To Reproduce/Bad Parse Tree
Expected Behavior/Parse Tree
Repro
The text was updated successfully, but these errors were encountered: