struct

Heucristic::Document::Text

Inherits Struct < Value < Object

Constructors

new(source : String)
Source

Class methods

line_starts(source : String) : Array(Int32)
Source

Instance methods

offset(position : LSProtocol::Position) : Int32 | OutOfRange
Source
point(position : LSProtocol::Position) : Point | OutOfRange
Source
point_at(offset : Int32) : Point | OutOfRange
Source
position(point : Point) : LSProtocol::Position | OutOfRange
Source
source
Source
span(from : Point, to : Point) : Span | OutOfRange
Source
span_at(location : Crystal::Location, size : Int32) : Span | Nil
Source
span_of(word : String, after : Crystal::Location, skipping : Int32) : Span | Nil
Source
splice(from : Int32, to : Int32, replacement : String) : Text
Source