View Source GenLSP.Structures.Range (gen_lsp v0.10.0)

A range in a text document expressed as (zero-based) start and end positions.

If you want to specify a range that contains a line including the line ending character(s) then use an end position denoting the start of the next line. For example:

{
    start: { line: 5, character: 23 }
    end : { line 6, character : 0 }
}

Link to this section Summary

Functions

Fields

  • start: The range's start position.
  • end: The range's end position.

Link to this section Types

@type t() :: %GenLSP.Structures.Range{
  end: GenLSP.Structures.Position.t(),
  start: GenLSP.Structures.Position.t()
}

Link to this section Functions

Link to this function

%GenLSP.Structures.Range{}

View Source (struct)

fields

Fields

  • start: The range's start position.
  • end: The range's end position.