-
Notifications
You must be signed in to change notification settings - Fork 131
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
refactoring(parser): Pass around tokens instead of blocks #125
Conversation
2c3dc07
to
d424744
Compare
d424744
to
6451811
Compare
6451811
to
2b908b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but would prefer comments be added when ignoring an error return explaining why.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Previously we were passing around (either generic
hcl
orhclsyntax
) blocks which don't carry sufficient details about the block when it comes to completion of incomplete configs, as described in #12 (comment)This PR refactors the parsing logic to pass around
hclsyntax.Tokens
instead as that carries the right amount of details we need.The PR should however be a no-op from user's perspective.