Class: TreeSitterLanguagePack::CodeChunk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCodeChunk

Returns a new instance of CodeChunk.

Parameters:

  • content: (String)
  • start_byte: (Integer)
  • end_byte: (Integer)
  • start_line: (Integer)
  • end_line: (Integer)
  • metadata: (ChunkContext)


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

def initialize: (?content: String, ?start_byte: Integer, ?end_byte: Integer, ?start_line: Integer, ?end_line: Integer, ?metadata: ChunkContext) -> void

Instance Attribute Details

#contentString?

Returns the value of attribute content.

Returns:

  • (String, nil)


149
150
151
# File 'sig/types.rbs', line 149

def content
  @content
end

#end_byteInteger?

Returns the value of attribute end_byte.

Returns:

  • (Integer, nil)


151
152
153
# File 'sig/types.rbs', line 151

def end_byte
  @end_byte
end

#end_lineInteger?

Returns the value of attribute end_line.

Returns:

  • (Integer, nil)


153
154
155
# File 'sig/types.rbs', line 153

def end_line
  @end_line
end

#metadataChunkContext?

Returns the value of attribute metadata.

Returns:



154
155
156
# File 'sig/types.rbs', line 154

def 
  @metadata
end

#start_byteInteger?

Returns the value of attribute start_byte.

Returns:

  • (Integer, nil)


150
151
152
# File 'sig/types.rbs', line 150

def start_byte
  @start_byte
end

#start_lineInteger?

Returns the value of attribute start_line.

Returns:

  • (Integer, nil)


152
153
154
# File 'sig/types.rbs', line 152

def start_line
  @start_line
end