struct LSP::Position

Included Modules

Defined in:

lsp/position.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(line : UInt32, character : UInt32) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def 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.


[View source]
def 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.


[View source]
def line : UInt32 #

Line position in a document (zero-based).


[View source]
def line=(line : UInt32) #

Line position in a document (zero-based).


[View source]
def to_s(io) #

[View source]