-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
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
Missing then_clause
#212
Comments
Is this needed? It just seems to me that the body of the if statement that follows after then, maybe a field of 'body' for that can be added instead |
It's needed because it makes easier to work with a tree when things grouped into own nodes that are at stable offsets in a parent node instead of while having variable length things that been appended on a previous siblings. Also on 0:7 there shouldn't be a |
ts p --scope source.bash -oc - 'if true; false; true; then echo foo; echo bar; echo then; else echo baz; echo flux; echo else; fi' Above is a more longer example of why parent nodes are needed. |
yeah, makes sense |
The text was updated successfully, but these errors were encountered: