Astlib.LocationSource code locations (ranges of positions), used in parsetrees
A located type
module Error : sig ... endval none : tAn arbitrary value of type t; describes an empty ghost range.
val register_error_of_exn : ( exn -> Error.t option ) -> unitEach compiler module which defines a custom type of exception which can surface as a user-visible error should register a "printer" for this exception using register_error_of_exn. The result of the printer is an error value containing a location, a message, and optionally sub-messages (each of them being located as well).
exception Error of Error.tLocated exception.
val raise_errorf :
?loc:t ->
( 'a, Stdlib.Format.formatter, unit, 'b ) Stdlib.format4 ->
'aRaise a located exception.