Skip to content

Embed errors in AST instead of raising exceptions#44

Open
NathanReb wants to merge 3 commits intomainfrom
embed-errors
Open

Embed errors in AST instead of raising exceptions#44
NathanReb wants to merge 3 commits intomainfrom
embed-errors

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>
@NathanReb NathanReb linked an issue Mar 11, 2024 that may be closed by this pull request
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