Skip to content
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

Move the operator argument for Operation and wrap it in Node #247

Open
wants to merge 45 commits into
base: breaking-changes-v8
Choose a base branch
from

Conversation

jfmengels
Copy link
Collaborator

Wrapping it in a Node makes the position available, which I know we've used workarounds for in some elm-review rules.

Moving the operator is meant to make the data resemble the AST more (because it's a + b, not + a b)

I'm not sure if we can improve the parser part more.

jfmengels and others added 30 commits August 2, 2024 23:36
)
(Parser.symbol symbol)
|= Parser.getPosition
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I'm slightly happy with this trick that avoids an eager getPosition)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants