Class: TreeSitterLanguagePack::Span

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSpan

Returns a new instance of Span.

Parameters:

  • start_byte: (Integer)
  • end_byte: (Integer)
  • start_line: (Integer)
  • start_column: (Integer)
  • end_line: (Integer)
  • end_column: (Integer)


39
# File 'sig/types.rbs', line 39

def initialize: (?start_byte: Integer, ?end_byte: Integer, ?start_line: Integer, ?start_column: Integer, ?end_line: Integer, ?end_column: Integer) -> void

Instance Attribute Details

#end_byteInteger?

Returns the value of attribute end_byte.

Returns:

  • (Integer, nil)


33
34
35
# File 'sig/types.rbs', line 33

def end_byte
  @end_byte
end

#end_columnInteger?

Returns the value of attribute end_column.

Returns:

  • (Integer, nil)


37
38
39
# File 'sig/types.rbs', line 37

def end_column
  @end_column
end

#end_lineInteger?

Returns the value of attribute end_line.

Returns:

  • (Integer, nil)


36
37
38
# File 'sig/types.rbs', line 36

def end_line
  @end_line
end

#start_byteInteger?

Returns the value of attribute start_byte.

Returns:

  • (Integer, nil)


32
33
34
# File 'sig/types.rbs', line 32

def start_byte
  @start_byte
end

#start_columnInteger?

Returns the value of attribute start_column.

Returns:

  • (Integer, nil)


35
36
37
# File 'sig/types.rbs', line 35

def start_column
  @start_column
end

#start_lineInteger?

Returns the value of attribute start_line.

Returns:

  • (Integer, nil)


34
35
36
# File 'sig/types.rbs', line 34

def start_line
  @start_line
end