View Source Lexical.Document.Location (lexical_shared v0.5.0)

A location in a document

One of the fundamental LSP structures, this represents a subset of text in a document. The location is bounded by the given range, and the document can be given as a Lexical.Document struct, or a uri referencing the document

Link to this section Summary

Functions

Returns the location document's uri.

Link to this section Types

@type t() :: %Lexical.Document.Location{
  document: Lexical.Document.t() | nil,
  range: Lexical.Document.Range.t(),
  uri: Lexical.uri()
}

Link to this section Functions

@spec uri(t()) :: Lexical.uri()

Returns the location document's uri.