Ocaml_common.Locationtype t = Ocaml_common.Warnings.loc = {loc_start : Lexing.position;loc_end : Lexing.position;loc_ghost : bool;}val none : tval is_none : t -> boolval in_file : string -> tval init : Lexing.lexbuf -> string -> unitval curr : Lexing.lexbuf -> tval symbol_rloc : unit -> tval symbol_gloc : unit -> tval rhs_loc : int -> tval rhs_interval : int -> int -> tval get_pos_info : Lexing.position -> string * int * intval mknoloc : 'a -> 'a locval input_name : string refval input_lexbuf : Lexing.lexbuf option refval separate_new_message : Format.formatter -> unitval print_filename : Format.formatter -> string -> unitval print_loc : Format.formatter -> t -> unitval print_locs : Format.formatter -> t list -> unitval highlight_terminfo : Lexing.lexbuf -> Format.formatter -> t list -> unittype msg = (Format.formatter -> unit) locval msg : ?loc:t -> ('a, Format.formatter, unit, msg) format4 -> 'atype report_printer = {pp : report_printer -> Format.formatter -> report -> unit;pp_report_kind : report_printer ->
report ->
Format.formatter ->
report_kind ->
unit;pp_main_loc : report_printer -> report -> Format.formatter -> t -> unit;pp_main_txt : report_printer ->
report ->
Format.formatter ->
(Format.formatter -> unit) ->
unit;pp_submsgs : report_printer -> report -> Format.formatter -> msg list -> unit;pp_submsg : report_printer -> report -> Format.formatter -> msg -> unit;pp_submsg_loc : report_printer -> report -> Format.formatter -> t -> unit;pp_submsg_txt : report_printer ->
report ->
Format.formatter ->
(Format.formatter -> unit) ->
unit;}val batch_mode_printer : report_printerval terminfo_toplevel_printer : Lexing.lexbuf -> report_printerval best_toplevel_printer : unit -> report_printerval print_report : Format.formatter -> report -> unitval report_printer : (unit -> report_printer) refval default_report_printer : unit -> report_printerval report_warning : t -> Ocaml_common.Warnings.t -> report optionval warning_reporter : (t -> Ocaml_common.Warnings.t -> report option) refval default_warning_reporter : t -> Ocaml_common.Warnings.t -> report optionval formatter_for_warnings : Format.formatter refval print_warning : t -> Format.formatter -> Ocaml_common.Warnings.t -> unitval prerr_warning : t -> Ocaml_common.Warnings.t -> unitval report_alert : t -> Ocaml_common.Warnings.alert -> report optionval alert_reporter : (t -> Ocaml_common.Warnings.alert -> report option) refval default_alert_reporter : t -> Ocaml_common.Warnings.alert -> report optionval print_alert : t -> Format.formatter -> Ocaml_common.Warnings.alert -> unitval prerr_alert : t -> Ocaml_common.Warnings.alert -> unittype error = reportval errorf :
?loc:t ->
?sub:msg list ->
('a, Format.formatter, unit, error) format4 ->
'aval error_of_printer :
?loc:t ->
?sub:msg list ->
(Format.formatter -> 'a -> unit) ->
'a ->
errorval error_of_printer_file : (Format.formatter -> 'a -> unit) -> 'a -> errorval register_error_of_exn : (exn -> error option) -> unitval error_of_exn : exn -> [ `Already_displayed | `Ok of error ] optionexception Error of errorval raise_errorf :
?loc:t ->
?sub:msg list ->
('a, Format.formatter, unit, 'b) format4 ->
'aval report_exception : Format.formatter -> exn -> unit