module Location: sig
.. end
An arbitrary value of type t
; describes an empty ghost range.
type
t = {
|
loc_start : Lexing.position ; |
|
loc_end : Lexing.position ; |
|
loc_ghost : bool ; |
}
val none : t
An arbitrary value of type t
; describes an empty ghost range.
val in_file : string -> t
Return an empty ghost range located in a given file.
val init : Lexing.lexbuf -> string -> unit
Set the file name and line number of the lexbuf
to be the start
of the named file.
val curr : Lexing.lexbuf -> t
Get the location of the current token from the lexbuf
.
val symbol_rloc : unit -> t
val symbol_gloc : unit -> t
val rhs_loc : int -> t
val input_name : string Pervasives.ref
val input_lexbuf : Lexing.lexbuf option Pervasives.ref
val get_pos_info : Lexing.position -> string * int * int
val print_error : Format.formatter -> t -> unit
val print_error_cur_file : Format.formatter -> unit
val print_warning : t -> Format.formatter -> Warnings.t -> unit
val prerr_warning : t -> Warnings.t -> unit
val echo_eof : unit -> unit
val reset : unit -> unit
val highlight_locations : Format.formatter -> t -> t -> bool
val print : Format.formatter -> t -> unit