Skip to main content

Module position

Module position 

Source
Expand description

Position and range types for document editing

Provides types and builders for working with positions and ranges in documents. Supports both byte offsets and line/column positions with efficient conversion between them using the rope data structure.

Structsยง

LineColumn
A line/column position in a document
Position
A position in a document represented as byte offset
PositionBuilder
Builder for creating document positions with fluent API
Range
A range in a document represented by start and end positions
Selection
Selection represents a range with a direction