Skip to content

Comments

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

Open
jfmengels wants to merge 45 commits intobreaking-changes-v8from
wrap-operator-in-node
Open

Move the operator argument for Operation and wrap it in Node#247
jfmengels wants to merge 45 commits intobreaking-changes-v8from
wrap-operator-in-node

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
symbol
)
(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)

@jfmengels jfmengels force-pushed the breaking-changes-v8 branch from eff82e1 to 0f43132 Compare August 7, 2024 15:59
@jfmengels jfmengels force-pushed the breaking-changes-v8 branch 2 times, most recently from 7ccc635 to 1787a7f Compare September 12, 2024 14:52
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