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)


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

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 (readonly)

Returns the value of attribute end_byte.

Returns:

  • (Integer)


236
237
238
# File 'sig/types.rbs', line 236

def end_byte
  @end_byte
end

#end_columnInteger (readonly)

Returns the value of attribute end_column.

Returns:

  • (Integer)


240
241
242
# File 'sig/types.rbs', line 240

def end_column
  @end_column
end

#end_lineInteger (readonly)

Returns the value of attribute end_line.

Returns:

  • (Integer)


239
240
241
# File 'sig/types.rbs', line 239

def end_line
  @end_line
end

#start_byteInteger (readonly)

Returns the value of attribute start_byte.

Returns:

  • (Integer)


235
236
237
# File 'sig/types.rbs', line 235

def start_byte
  @start_byte
end

#start_columnInteger (readonly)

Returns the value of attribute start_column.

Returns:

  • (Integer)


238
239
240
# File 'sig/types.rbs', line 238

def start_column
  @start_column
end

#start_lineInteger (readonly)

Returns the value of attribute start_line.

Returns:

  • (Integer)


237
238
239
# File 'sig/types.rbs', line 237

def start_line
  @start_line
end