IBase.Location
type t = {
file : SourceFile.t;
The name of the source file
*)line : int;
The line number. -1 means "do not know"
*)col : int;
The column number. -1 means "do not know"
*)macro_file_opt : SourceFile.t option;
If the location is coming from macro expansion, the name of the file macro is defined in
*)macro_line : int;
If the location is coming from macro expansion, the line number
*)}
Location in the original source file
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t Base__Ppx_compare_lib.compare
val get_macro_file_line_opt : t -> (SourceFile.t * int) option
val none : SourceFile.t -> t
Dummy source location for the given file
val dummy : t
Dummy location with no source file
val pp : Stdlib.Format.formatter -> t -> unit
Pretty print a location.
val pp_line : Stdlib.Format.formatter -> t -> unit
print just the line information
val to_string : t -> string
String representation of a location.
val pp_file_pos : Stdlib.Format.formatter -> t -> unit
Pretty print a file-position of a location
module Map : IStdlib.PrettyPrintable.PPMap with type key = t