Class: TreeSitterLanguagePack::CodeChunk
- Inherits:
-
Object
- Object
- TreeSitterLanguagePack::CodeChunk
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#content ⇒ String?
Returns the value of attribute content.
-
#end_byte ⇒ Integer?
Returns the value of attribute end_byte.
-
#end_line ⇒ Integer?
Returns the value of attribute end_line.
-
#metadata ⇒ ChunkContext?
Returns the value of attribute metadata.
-
#start_byte ⇒ Integer?
Returns the value of attribute start_byte.
-
#start_line ⇒ Integer?
Returns the value of attribute start_line.
Instance Method Summary collapse
-
#initialize ⇒ CodeChunk
constructor
A new instance of CodeChunk.
Constructor Details
#initialize ⇒ CodeChunk
Returns a new instance of CodeChunk.
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
#content ⇒ String?
Returns the value of attribute content.
149 150 151 |
# File 'sig/types.rbs', line 149 def content @content end |
#end_byte ⇒ Integer?
Returns the value of attribute end_byte.
151 152 153 |
# File 'sig/types.rbs', line 151 def end_byte @end_byte end |
#end_line ⇒ Integer?
Returns the value of attribute end_line.
153 154 155 |
# File 'sig/types.rbs', line 153 def end_line @end_line end |
#metadata ⇒ ChunkContext?
Returns the value of attribute metadata.
154 155 156 |
# File 'sig/types.rbs', line 154 def @metadata end |
#start_byte ⇒ Integer?
Returns the value of attribute start_byte.
150 151 152 |
# File 'sig/types.rbs', line 150 def start_byte @start_byte end |
#start_line ⇒ Integer?
Returns the value of attribute start_line.
152 153 154 |
# File 'sig/types.rbs', line 152 def start_line @start_line end |