package linol

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Linol_lsp.Text_documentSource

Sourcetype t
type encoding := [
  1. | `UTF8
  2. | `UTF16
]
Sourceval make : position_encoding:encoding -> Types.DidOpenTextDocumentParams.t -> t
Sourceval languageId : t -> string
Sourceval documentUri : t -> Uri0.t
Sourceval position_encoding : t -> encoding
Sourceval version : t -> int
Sourceval text : t -> string
Sourcetype invalid_utf =
  1. | Malformed of string
  2. | Insufficient_input
Sourceexception Invalid_utf of invalid_utf
Sourceval apply_content_changes : ?version:int -> t -> Types.TextDocumentContentChangeEvent.t list -> t
Sourceval set_version : t -> version:int -> t
Sourceval apply_text_document_edits : t -> Types.TextEdit.t list -> t

Apply a list of non overlapping text edits. The order of application matters when multiple inserts are done in the same position. All the offsets are interpreted relative to the original document.

Sourceval absolute_position : t -> Types.Position.t -> int

absolute_position t pos returns the absolute position of pos inside text t. If the position is outside the bounds of the document, the offset returned will be the length of the document. pos is interpreted with position_encoding t

Sourceval absolute_range : t -> Types.Range.t -> int * int
OCaml

Innovation. Community. Security.