package linol

  1. Overview
  2. Docs
LSP server library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

linol-0.11.tbz
sha256=6718c7ca79ebff542172f20f418f71f3f1679eb6120f543b5c5c28d85906e215
sha512=1e7e963b5af3ea861cc1367ee6e80fd9add8e6809229c2904f7a16e694cb48a2058063bd3856e6440e7b197f753474bf83c0c9ec2d78325cfef2b734eb9d4ca2

doc/src/linol.lsp/position.ml.html

Source file position.ml

1
2
3
4
5
6
7
8
9
10
include Types.Position

let zero = create ~line:0 ~character:0
let is_zero (t : t) = t.line = zero.line && t.character = zero.character

let compare t { line; character } =
  match Int.compare t.line line with
  | 0 -> Int.compare t.character character
  | n -> n
;;