include Ocaml_common.Location
type t = Warnings.loc = {loc_start : Lexing.position; |
loc_end : Lexing.position; |
loc_ghost : bool; |
}val in_file : string ‑> tval init : Lexing.lexbuf ‑> string ‑> unit
val curr : Lexing.lexbuf ‑> tval symbol_rloc : unit ‑> tval symbol_gloc : unit ‑> tval get_pos_info : Lexing.position ‑> string * int * int
val print_loc : Format.formatter ‑> t ‑> unitval print_error : Format.formatter ‑> t ‑> unitval print_error_cur_file : Format.formatter ‑> unit ‑> unit
val print_warning : t ‑> Format.formatter ‑> Warnings.t ‑> unitval prerr_warning : t ‑> Warnings.t ‑> unitval echo_eof : unit ‑> unit
val default_printer : Format.formatter ‑> t ‑> unitval printer : (Format.formatter ‑> t ‑> unit) Pervasives.refval warning_printer : (t ‑> Format.formatter ‑> Warnings.t ‑> unit) Pervasives.refval default_warning_printer : t ‑> Format.formatter ‑> Warnings.t ‑> unitval highlight_locations : Format.formatter ‑> t list ‑> booltype 'a loc = 'a Location.loc = {}val mknoloc : 'a ‑> 'a locval mkloc : 'a ‑> t ‑> 'a locval print : Format.formatter ‑> t ‑> unitval print_compact : Format.formatter ‑> t ‑> unitval print_filename : Format.formatter ‑> string ‑> unit
val absolute_path : string ‑> string
val show_filename : string ‑> string
val absname : bool Pervasives.ref
type error = Location.error = {loc : t; |
msg : string; |
sub : error list; |
if_highlight : string; |
}exception Already_displayed_error
val error : ?loc:t ‑> ?sub:error list ‑> ?if_highlight:string ‑> string ‑> errorval errorf : ?loc:t ‑> ?sub:error list ‑> ?if_highlight:string ‑> ('a, Format.formatter, unit, error) Pervasives.format4 ‑> 'aval raise_errorf : ?loc:t ‑> ?sub:error list ‑> ?if_highlight:string ‑> ('a, Format.formatter, unit, 'b) Pervasives.format4 ‑> 'aval error_of_printer : t ‑> (Format.formatter ‑> 'a ‑> unit) ‑> 'a ‑> errorval error_of_printer_file : (Format.formatter ‑> 'a ‑> unit) ‑> 'a ‑> errorval error_of_exn : exn ‑> [ `Already_displayed | `Ok of error ] optionval register_error_of_exn : (exn ‑> error option) ‑> unitval report_error : Format.formatter ‑> error ‑> unitval error_reporter : (Format.formatter ‑> error ‑> unit) Pervasives.refval default_error_reporter : Format.formatter ‑> error ‑> unitval report_exception : Format.formatter ‑> exn ‑> unit
val deprecated : ?def:t ‑> ?use:t ‑> t ‑> string ‑> unit