Skip to content

Move location attribute reader to base Node class #27

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

Merged
merged 1 commit into from
Mar 31, 2022

Conversation

Morriar
Copy link
Contributor

@Morriar Morriar commented Mar 31, 2022

Having the location in the Node would make SyntaxTree more type-checking friendly.
When dealing with a bare Node, tools are generally interested in getting the node location.
For anything else the node can be cast down to a more specific type.

@kddnewton kddnewton merged commit cdecb9e into ruby-syntax-tree:main Mar 31, 2022
@Morriar Morriar deleted the at-node-location branch March 31, 2022 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants