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

Preserve sugared extension node attached to an 'if' carrying attributes #2167

Merged
merged 1 commit into from
Oct 5, 2022

Conversation

gpetiot
Copy link
Collaborator

@gpetiot gpetiot commented Sep 30, 2022

Extracted from ocamlformat-ng's concrete AST in our long-running effort to make the AST closer to the original source.

In this one the sugaring of if-then-else expressions is moved from Sugar.ml to the parser, removing intermediary locations. Also one step closer to have the AST (soon CST) handle attributes and extension nodes better.

No diff found with test_branch.sh for the 3 profiles.

CHANGES.md Outdated Show resolved Hide resolved
@gpetiot gpetiot force-pushed the ifthenelse-branch branch from eb40fb2 to b8842d2 Compare October 3, 2022 08:35
@gpetiot gpetiot force-pushed the ifthenelse-branch branch from b8842d2 to 2fe5ece Compare October 5, 2022 14:50
@gpetiot gpetiot merged commit 4b9f85a into ocaml-ppx:main Oct 5, 2022
@gpetiot gpetiot deleted the ifthenelse-branch branch October 5, 2022 15:26
EmileTrotignon pushed a commit to EmileTrotignon/ocamlformat that referenced this pull request Oct 17, 2022
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.

3 participants