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

Allow ppx rewriters to specify when they should be applied #51

Merged
merged 1 commit into from
Sep 5, 2018

Conversation

ghost
Copy link

@ghost ghost commented Sep 4, 2018

Currently, the rewriting order depend on the AST version used by each individual rewriters. This ensures that we do the minimal amount of AST conversions, however this doesn't work for all rewriters such as ppx_import.

This PR adds an argument position:int to Driver.register to allow rewriters to specify an ordering.

@ghost ghost requested a review from let-def September 4, 2018 13:42
@ghost ghost mentioned this pull request Sep 4, 2018
@let-def let-def merged commit 3252c67 into master Sep 5, 2018
Copy link
Collaborator

@let-def let-def left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks.

@ghost
Copy link
Author

ghost commented Sep 5, 2018

I'm preparing a v1.1.0 release

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.

2 participants