Class: Oselvar::Var::Core::Span
- Inherits:
-
Data
- Object
- Data
- Oselvar::Var::Core::Span
- Defined in:
- lib/oselvar/var/core/span.rb
Overview
A source span. Offsets and columns are UTF-16 code units (an astral character like 😀 counts as 2), matching the goldens and LSP's default position encoding. Lines/cols are 1-based.
Instance Attribute Summary collapse
-
#end_col ⇒ Object
readonly
Returns the value of attribute end_col.
-
#end_line ⇒ Object
readonly
Returns the value of attribute end_line.
-
#end_offset ⇒ Object
readonly
Returns the value of attribute end_offset.
-
#start_col ⇒ Object
readonly
Returns the value of attribute start_col.
-
#start_line ⇒ Object
readonly
Returns the value of attribute start_line.
-
#start_offset ⇒ Object
readonly
Returns the value of attribute start_offset.
Instance Attribute Details
#end_col ⇒ Object (readonly)
Returns the value of attribute end_col
9 10 11 |
# File 'lib/oselvar/var/core/span.rb', line 9 def end_col @end_col end |
#end_line ⇒ Object (readonly)
Returns the value of attribute end_line
9 10 11 |
# File 'lib/oselvar/var/core/span.rb', line 9 def end_line @end_line end |
#end_offset ⇒ Object (readonly)
Returns the value of attribute end_offset
9 10 11 |
# File 'lib/oselvar/var/core/span.rb', line 9 def end_offset @end_offset end |
#start_col ⇒ Object (readonly)
Returns the value of attribute start_col
9 10 11 |
# File 'lib/oselvar/var/core/span.rb', line 9 def start_col @start_col end |
#start_line ⇒ Object (readonly)
Returns the value of attribute start_line
9 10 11 |
# File 'lib/oselvar/var/core/span.rb', line 9 def start_line @start_line end |
#start_offset ⇒ Object (readonly)
Returns the value of attribute start_offset
9 10 11 |
# File 'lib/oselvar/var/core/span.rb', line 9 def start_offset @start_offset end |