Module Ppxlib_ast__Import.Location
include Ocaml_common.Location
type t= Warnings.loc={loc_start : Stdlib.Lexing.position;loc_end : Stdlib.Lexing.position;loc_ghost : bool;}
val none : tval is_none : t -> boolval in_file : string -> tval init : Stdlib.Lexing.lexbuf -> string -> unitval curr : Stdlib.Lexing.lexbuf -> tval symbol_rloc : unit -> tval symbol_gloc : unit -> tval rhs_loc : int -> tval rhs_interval : int -> int -> tval get_pos_info : Stdlib.Lexing.position -> string * int * int
type 'a loc= 'a Location.loc={txt : 'a;loc : t;}
val mknoloc : 'a -> 'a locval mkloc : 'a -> t -> 'a locval input_name : string Stdlib.refval input_lexbuf : Stdlib.Lexing.lexbuf option Stdlib.refval input_phrase_buffer : Stdlib.Buffer.t option Stdlib.refval echo_eof : unit -> unitval reset : unit -> unitval rewrite_absolute_path : string -> stringval absolute_path : string -> stringval show_filename : string -> stringval print_filename : Stdlib.Format.formatter -> string -> unitval print_loc : Stdlib.Format.formatter -> t -> unitval print_locs : Stdlib.Format.formatter -> t list -> unitval highlight_terminfo : Stdlib.Lexing.lexbuf -> Stdlib.Format.formatter -> t list -> unit
type msg= (Stdlib.Format.formatter -> unit) loc
type report_kind= Location.report_kind=|Report_error|Report_warning of string|Report_warning_as_error of string|Report_alert of string|Report_alert_as_error of stringtype report= Location.report={kind : report_kind;main : msg;sub : msg list;}type report_printer= Location.report_printer={pp : report_printer -> Stdlib.Format.formatter -> report -> unit;pp_report_kind : report_printer -> report -> Stdlib.Format.formatter -> report_kind -> unit;pp_main_loc : report_printer -> report -> Stdlib.Format.formatter -> t -> unit;pp_main_txt : report_printer -> report -> Stdlib.Format.formatter -> (Stdlib.Format.formatter -> unit) -> unit;pp_submsgs : report_printer -> report -> Stdlib.Format.formatter -> msg list -> unit;pp_submsg : report_printer -> report -> Stdlib.Format.formatter -> msg -> unit;pp_submsg_loc : report_printer -> report -> Stdlib.Format.formatter -> t -> unit;pp_submsg_txt : report_printer -> report -> Stdlib.Format.formatter -> (Stdlib.Format.formatter -> unit) -> unit;}
val batch_mode_printer : report_printerval terminfo_toplevel_printer : Stdlib.Lexing.lexbuf -> report_printerval best_toplevel_printer : unit -> report_printerval print_report : Stdlib.Format.formatter -> report -> unitval report_printer : (unit -> report_printer) Stdlib.refval default_report_printer : unit -> report_printerval report_warning : t -> Warnings.t -> report optionval warning_reporter : (t -> Warnings.t -> report option) Stdlib.refval default_warning_reporter : t -> Warnings.t -> report optionval formatter_for_warnings : Stdlib.Format.formatter Stdlib.refval print_warning : t -> Stdlib.Format.formatter -> Warnings.t -> unitval prerr_warning : t -> Warnings.t -> unitval report_alert : t -> Warnings.alert -> report optionval alert_reporter : (t -> Warnings.alert -> report option) Stdlib.refval default_alert_reporter : t -> Warnings.alert -> report optionval print_alert : t -> Stdlib.Format.formatter -> Warnings.alert -> unitval prerr_alert : t -> Warnings.alert -> unitval deprecated : ?def:t -> ?use:t -> t -> string -> unitval alert : ?def:t -> ?use:t -> kind:string -> t -> string -> unit
type error= report
val error : ?loc:t -> ?sub:msg list -> string -> errorval errorf : ?loc:t -> ?sub:msg list -> ('a, Stdlib.Format.formatter, unit, error) Stdlib.format4 -> 'aval error_of_printer : ?loc:t -> ?sub:msg list -> (Stdlib.Format.formatter -> 'a -> unit) -> 'a -> errorval error_of_printer_file : (Stdlib.Format.formatter -> 'a -> unit) -> 'a -> errorval register_error_of_exn : (exn -> error option) -> unitval error_of_exn : exn -> [ `Already_displayed | `Ok of error ] option
exceptionError of errorexceptionAlready_displayed_error