Class: TreeSitterLanguagePack::ChunkContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChunkContext

Returns a new instance of ChunkContext.

Parameters:

  • 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: (Boolean)


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

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_indexInteger?

Returns the value of attribute chunk_index.

Returns:

  • (Integer, nil)


161
162
163
# File 'sig/types.rbs', line 161

def chunk_index
  @chunk_index
end

#commentsArray[CommentInfo]?

Returns the value of attribute comments.

Returns:



166
167
168
# File 'sig/types.rbs', line 166

def comments
  @comments
end

#context_pathArray[String]?

Returns the value of attribute context_path.

Returns:

  • (Array[String], nil)


164
165
166
# File 'sig/types.rbs', line 164

def context_path
  @context_path
end

#docstringsArray[DocstringInfo]?

Returns the value of attribute docstrings.

Returns:



167
168
169
# File 'sig/types.rbs', line 167

def docstrings
  @docstrings
end

#has_error_nodesBoolean?

Returns the value of attribute has_error_nodes.

Returns:

  • (Boolean, nil)


168
169
170
# File 'sig/types.rbs', line 168

def has_error_nodes
  @has_error_nodes
end

#languageString?

Returns the value of attribute language.

Returns:

  • (String, nil)


160
161
162
# File 'sig/types.rbs', line 160

def language
  @language
end

#node_typesArray[String]?

Returns the value of attribute node_types.

Returns:

  • (Array[String], nil)


163
164
165
# File 'sig/types.rbs', line 163

def node_types
  @node_types
end

#symbols_definedArray[String]?

Returns the value of attribute symbols_defined.

Returns:

  • (Array[String], nil)


165
166
167
# File 'sig/types.rbs', line 165

def symbols_defined
  @symbols_defined
end

#total_chunksInteger?

Returns the value of attribute total_chunks.

Returns:

  • (Integer, nil)


162
163
164
# File 'sig/types.rbs', line 162

def total_chunks
  @total_chunks
end