ppx_yojson
ppx_yojson copied to clipboard
Embed errors in AST instead of raising exceptions
trafficstars
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.