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

destruct: some refactoring #1747

Merged
merged 5 commits into from
Apr 9, 2024
Merged

Conversation

xvw
Copy link
Collaborator

@xvw xvw commented Apr 9, 2024

This branch pull to master the refactoring introduced in voodoos#10, taking into account field-puning processing (and other updates not introduced in preview 5.2.0). The test suite is still running, and each refactoring is in an isolated commit to facilitate integration with other branches.

xvw added 4 commits April 9, 2024 13:08
This makes it easier to process expressions (such as pattern parrent)
and, when processing function parameters, allows it to be used as a
fallback if `destruct` doesn't act on a parameter (but on the function
body).
Simplification of the `destruct node` function by moving the case of
destruct in the presence of an expression in a dedicated function.
Simplification of the `destruct node` function by moving the case of
destruct in the presence of a record in a dedicated function.
Simplification of the `destruct node` function by moving the case of
destruct in the presence of a pattern in a dedicated function.
@xvw xvw requested a review from voodoos April 9, 2024 11:36
@xvw xvw self-assigned this Apr 9, 2024
@xvw xvw added the no changelog Turn off CI changelog-check label Apr 9, 2024
Copy link
Collaborator

@voodoos voodoos left a comment

Choose a reason for hiding this comment

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

Thank you @xvw !

There are a few lines that are more than 80 characters, this PR is probably a good time to fix these :-)
I will merge once it done.

@xvw
Copy link
Collaborator Author

xvw commented Apr 9, 2024

Fixed on the last commit! Thanks for the review.
(I used occur to find longer line : M-s o + C-u 81 . (to generate 81 dots) :D)

@xvw xvw force-pushed the some-destruct-refactoring branch from 4a77f67 to e6e3966 Compare April 9, 2024 14:37
@voodoos voodoos merged commit d5dd40e into ocaml:master Apr 9, 2024
12 checks passed
@xvw xvw deleted the some-destruct-refactoring branch April 9, 2024 15:28
voodoos added a commit to voodoos/merlin that referenced this pull request May 13, 2024
from xvw/some-destruct-refactoring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Turn off CI changelog-check
Projects
Status: 5.0-501
Development

Successfully merging this pull request may close these issues.

2 participants