Skip to main content

Module coordinate

Module coordinate 

Source
Expand description

Coordinate mapper: byte offset <-> line/col <-> LSP position (UTF-16).

Structsยง

CoordinateMapper
Stateless mapper that converts freely between three coordinate systems:
LspPosition
An LSP-compatible position (0-based line, 0-based UTF-16 code-unit column).