Embedding errors directly into the AST using the special [%ocaml.error "Some error msg"] is the preferred way of reporting errors in ppxlib based ppx-es so it would be nice to migrate from raising through Location.raise_error* to embedding errors directly.
This would allow reporting several errors at once for a given ppx_yojson extension.
Embedding errors directly into the AST using the special
[%ocaml.error "Some error msg"]is the preferred way of reporting errors in ppxlib based ppx-es so it would be nice to migrate from raising throughLocation.raise_error*to embedding errors directly.This would allow reporting several errors at once for a given ppx_yojson extension.