struct

LSP::Position

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(line : UInt32, character : UInt32)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

character

Character offset on a line in a document (zero-based). Assuming that the line is represented as a string, the character value represents the gap between the character and character + 1.

If the character value is greater than the line length it defaults back to the line length.

Source
character=(character : UInt32)

Character offset on a line in a document (zero-based). Assuming that the line is represented as a string, the character value represents the gap between the character and character + 1.

If the character value is greater than the line length it defaults back to the line length.

Source
line

Line position in a document (zero-based).

Source
line=(line : UInt32)

Line position in a document (zero-based).

Source
to_s(io)
Source