Expand description
Parser engine components and supporting utilities. Position tracking types and UTF-16 mapping utilities. Enhanced position tracking for incremental parsing
This module re-exports position types from perl-position-tracking.
Structs§
- Line
Index - Stores line information for efficient position lookups, owning the text.
- Line
Starts Cache - Caches byte offsets for line starts to speed up coordinate conversion.
- Position
- A position in a source file with byte offset, line, and column
- Position
Mapper - Centralized position mapper using rope for efficiency.
- Range
- A range in a source file defined by start and end positions
- Wire
Location - A protocol-facing location that combines a URI and a range.
- Wire
Position - A protocol-facing LSP position.
- Wire
Range - A protocol-facing LSP range with inclusive start and exclusive end.
Enums§
- Line
Ending - Line ending style detected in a document
Functions§
- apply_
edit_ utf8 - Apply UTF-8 edit to a string.
- offset_
to_ utf16_ line_ col - Converts a byte offset into
(line, column_utf16)coordinates. - utf16_
line_ col_ to_ offset - Converts
(line, column_utf16)coordinates into a byte offset.