The zero-based character offset within the line.
The zero-based line offset.
Checks if this position is greater than or equal to end (lexicographically by line then character).
the position to compare against
true if this position is after or equal to end
Checks if this position is strictly greater than end (lexicographically by line then character).
the position to compare against
true if this position is after end
Checks if this position is less than or equal to start (lexicographically by line then character).
the position to compare against
true if this position is before or equal to start
Checks if this position is strictly less than start (lexicographically by line then character).
the position to compare against
true if this position is before start
A position within a text document.
This is a JS-exposed model type (
dh.lsp.Position) that closely follows the Language Server Protocol position shape.