Class: TreeSitterLanguagePack::ChunkContext
- Inherits:
-
Object
- Object
- TreeSitterLanguagePack::ChunkContext
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#chunk_index ⇒ Integer
readonly
Returns the value of attribute chunk_index.
-
#comments ⇒ Array[CommentInfo]
readonly
Returns the value of attribute comments.
-
#context_path ⇒ Array[String]
readonly
Returns the value of attribute context_path.
-
#docstrings ⇒ Array[DocstringInfo]
readonly
Returns the value of attribute docstrings.
-
#has_error_nodes ⇒ Boolean
readonly
Returns the value of attribute has_error_nodes.
-
#language ⇒ String
readonly
Returns the value of attribute language.
-
#node_types ⇒ Array[String]
readonly
Returns the value of attribute node_types.
-
#symbols_defined ⇒ Array[String]
readonly
Returns the value of attribute symbols_defined.
-
#total_chunks ⇒ Integer
readonly
Returns the value of attribute total_chunks.
Instance Method Summary collapse
-
#initialize ⇒ ChunkContext
constructor
A new instance of ChunkContext.
Constructor Details
#initialize ⇒ ChunkContext
Returns a new instance of ChunkContext.
30 |
# File 'sig/types.rbs', line 30
def initialize: (?language: String, ?chunk_index: Integer, ?total_chunks: Integer, ?node_types: Array[String], ?context_path: Array[String], ?symbols_defined: Array[String], ?comments: Array[CommentInfo], ?docstrings: Array[DocstringInfo], ?has_error_nodes: bool) -> void
|
Instance Attribute Details
#chunk_index ⇒ Integer (readonly)
Returns the value of attribute chunk_index.
21 22 23 |
# File 'sig/types.rbs', line 21 def chunk_index @chunk_index end |
#comments ⇒ Array[CommentInfo] (readonly)
Returns the value of attribute comments.
26 27 28 |
# File 'sig/types.rbs', line 26 def comments @comments end |
#context_path ⇒ Array[String] (readonly)
Returns the value of attribute context_path.
24 25 26 |
# File 'sig/types.rbs', line 24 def context_path @context_path end |
#docstrings ⇒ Array[DocstringInfo] (readonly)
Returns the value of attribute docstrings.
27 28 29 |
# File 'sig/types.rbs', line 27 def docstrings @docstrings end |
#has_error_nodes ⇒ Boolean (readonly)
Returns the value of attribute has_error_nodes.
28 29 30 |
# File 'sig/types.rbs', line 28 def has_error_nodes @has_error_nodes end |
#language ⇒ String (readonly)
Returns the value of attribute language.
20 21 22 |
# File 'sig/types.rbs', line 20 def language @language end |
#node_types ⇒ Array[String] (readonly)
Returns the value of attribute node_types.
23 24 25 |
# File 'sig/types.rbs', line 23 def node_types @node_types end |
#symbols_defined ⇒ Array[String] (readonly)
Returns the value of attribute symbols_defined.
25 26 27 |
# File 'sig/types.rbs', line 25 def symbols_defined @symbols_defined end |
#total_chunks ⇒ Integer (readonly)
Returns the value of attribute total_chunks.
22 23 24 |
# File 'sig/types.rbs', line 22 def total_chunks @total_chunks end |