struct LSP::Position
- LSP::Position
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
lsp/position.crConstructors
Instance Method Summary
-
#character : UInt32
Character offset on a line in a document (zero-based).
-
#character=(character : UInt32)
Character offset on a line in a document (zero-based).
-
#line : UInt32
Line position in a document (zero-based).
-
#line=(line : UInt32)
Line position in a document (zero-based).
- #to_s(io)
Constructor Detail
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.
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.