package mdx

  1. Overview
  2. Docs
include module type of struct include Ast_406.Location end
type t = Warnings.loc = {
  1. loc_start : Stdlib.Lexing.position;
  2. loc_end : Stdlib.Lexing.position;
  3. loc_ghost : bool;
}
val none : t
val in_file : string -> t
val init : Stdlib.Lexing.lexbuf -> string -> unit
val curr : Stdlib.Lexing.lexbuf -> t
val symbol_rloc : unit -> t
val symbol_gloc : unit -> t
val rhs_loc : int -> t
val input_name : string Stdlib.ref
val input_lexbuf : Stdlib.Lexing.lexbuf option Stdlib.ref
val get_pos_info : Stdlib.Lexing.position -> string * int * int
val print_loc : Stdlib.Format.formatter -> t -> unit
val print_error_prefix : Stdlib.Format.formatter -> unit
val print_error : Stdlib.Format.formatter -> t -> unit
val print_error_cur_file : Stdlib.Format.formatter -> unit -> unit
val print_warning : t -> Stdlib.Format.formatter -> Warnings.t -> unit
val formatter_for_warnings : Stdlib.Format.formatter Stdlib.ref
val prerr_warning : t -> Warnings.t -> unit
val echo_eof : unit -> unit
val reset : unit -> unit
val default_printer : Stdlib.Format.formatter -> t -> unit
val printer : (Stdlib.Format.formatter -> t -> unit) Stdlib.ref
val warning_printer : (t -> Stdlib.Format.formatter -> Warnings.t -> unit) Stdlib.ref
val default_warning_printer : t -> Stdlib.Format.formatter -> Warnings.t -> unit
val highlight_locations : Stdlib.Format.formatter -> t list -> bool
val show_code_at_location : Stdlib.Format.formatter -> Stdlib.Lexing.lexbuf -> t -> unit
type !'a loc = 'a Location.loc = {
  1. txt : 'a;
  2. loc : t;
}
val mknoloc : 'a -> 'a loc
val mkloc : 'a -> t -> 'a loc
val print : Stdlib.Format.formatter -> t -> unit
val print_compact : Stdlib.Format.formatter -> t -> unit
val print_filename : Stdlib.Format.formatter -> string -> unit
val rewrite_absolute_path : string -> string
val absolute_path : string -> string
val show_filename : string -> string
val absname : bool Stdlib.ref
type error = Location.error = {
  1. loc : t;
  2. msg : string;
  3. sub : error list;
  4. if_highlight : string;
}
exception Already_displayed_error
exception Error of error
val error : ?loc:t -> ?sub:error list -> ?if_highlight:string -> string -> error
val errorf : ?loc:t -> ?sub:error list -> ?if_highlight:string -> ('a, Stdlib.Format.formatter, unit, error) Stdlib.format4 -> 'a
val raise_errorf : ?loc:t -> ?sub:error list -> ?if_highlight:string -> ('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'a
val error_of_printer : t -> (Stdlib.Format.formatter -> 'a -> unit) -> 'a -> error
val error_of_printer_file : (Stdlib.Format.formatter -> 'a -> unit) -> 'a -> error
val error_of_exn : exn -> [ `Already_displayed | `Ok of error ] option
val register_error_of_exn : (exn -> error option) -> unit
val report_error : Stdlib.Format.formatter -> error -> unit
val error_reporter : (Stdlib.Format.formatter -> error -> unit) Stdlib.ref
val default_error_reporter : Stdlib.Format.formatter -> error -> unit
val report_exception : Stdlib.Format.formatter -> exn -> unit
val deprecated : ?def:t -> ?use:t -> t -> string -> unit
val fmt : Stdlib.Format.formatter -> t -> unit
val to_string : t -> string
val compare : t -> t -> int
val hash : 'a -> int
val is_single_line : t -> bool
val compare_start : t -> t -> int
val compare_start_col : t -> t -> int
val compare_end : t -> t -> int
val compare_end_col : t -> t -> int
val contains : t -> t -> bool
val width : t -> int
val compare_width_decreasing : t -> t -> int
OCaml

Innovation. Community. Security.