Ocaml_parsing.Location_aux
Sourcetype t = Location.t = {
loc_start : Lexing.position;
loc_end : Lexing.position;
loc_ghost : bool;
}
compare l1 l2
compares start positions, if equal compares end positions
Return the smallest location covered by both arguments, ghost if both are ghosts
included ~into:parent child
returns true
if child
is included in parent
. Otherwise returns false
.
overlap_with_range (pos_start, pos_end) loc
returns true
if loc
overlap with the range defined by pos_start
and pos_end
.
Filter valid errors, log invalid ones