Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/reason-parser/reason_location.mli
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module Range : sig
type t =
{ lnum_start : int
; lnum_end : int
}
(** [t] represents an interval, including endpoints, * delimited by two
linenumbers. *)

val makeRangeBetween : Location.t -> Location.t -> t
val containsLoc : t -> Warnings.loc -> bool

val containsWhitespace :
?comments:Reason_comment.t list
-> range:t
-> unit
-> bool
end

val hasSpaceBetween : Location.t -> Location.t -> bool
(** compute if there's space (one or more line) between [loc1] and [loc2] *)
Loading