linol/thirdparty/lsp/ocaml-lsp-server/src/position.mli

10 lines
366 B
OCaml

open! Import
include module type of Lsp.Types.Position with type t = Lsp.Types.Position.t
val compare_inclusion : t -> Lsp.Types.Range.t -> [ `Inside | `Outside of t ]
val ( - ) : t -> t -> t
val compare : t -> t -> Ordering.t
val logical : t -> [> `Logical of int * int ]
val of_lexical_position : Lexing.position -> t option
val start : t
val to_dyn : t -> Dyn.t