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)


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

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

Instance Attribute Details

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


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

def content
  @content
end

#end_byteInteger (readonly)

Returns the value of attribute end_byte.

Returns:

  • (Integer)


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

def end_byte
  @end_byte
end

#end_lineInteger (readonly)

Returns the value of attribute end_line.

Returns:

  • (Integer)


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

def end_line
  @end_line
end

#metadataChunkContext (readonly)

Returns the value of attribute metadata.

Returns:



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

def 
  @metadata
end

#start_byteInteger (readonly)

Returns the value of attribute start_byte.

Returns:

  • (Integer)


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

def start_byte
  @start_byte
end

#start_lineInteger (readonly)

Returns the value of attribute start_line.

Returns:

  • (Integer)


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

def start_line
  @start_line
end