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

Embed errors in AST instead of raising exceptions #44

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

NathanReb
Copy link
Owner

This replaces uses of Location.raise_errorf by generating an ocaml.error extension node and inserting it into the generated AST.

This allows the ppx to process all extension nodes and to produce all errors in a single run so that they can all be reported by merlin in the editor.

Signed-off-by: Nathan Rebours <nathan.p.rebours@gmail.com>
Signed-off-by: Nathan Rebours <nathan.p.rebours@gmail.com>
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.

Embed errors in the generated AST instead of raising.
1 participant