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)


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_indexInteger (readonly)

Returns the value of attribute chunk_index.

Returns:

  • (Integer)


21
22
23
# File 'sig/types.rbs', line 21

def chunk_index
  @chunk_index
end

#commentsArray[CommentInfo] (readonly)

Returns the value of attribute comments.

Returns:



26
27
28
# File 'sig/types.rbs', line 26

def comments
  @comments
end

#context_pathArray[String] (readonly)

Returns the value of attribute context_path.

Returns:

  • (Array[String])


24
25
26
# File 'sig/types.rbs', line 24

def context_path
  @context_path
end

#docstringsArray[DocstringInfo] (readonly)

Returns the value of attribute docstrings.

Returns:



27
28
29
# File 'sig/types.rbs', line 27

def docstrings
  @docstrings
end

#has_error_nodesBoolean (readonly)

Returns the value of attribute has_error_nodes.

Returns:

  • (Boolean)


28
29
30
# File 'sig/types.rbs', line 28

def has_error_nodes
  @has_error_nodes
end

#languageString (readonly)

Returns the value of attribute language.

Returns:

  • (String)


20
21
22
# File 'sig/types.rbs', line 20

def language
  @language
end

#node_typesArray[String] (readonly)

Returns the value of attribute node_types.

Returns:

  • (Array[String])


23
24
25
# File 'sig/types.rbs', line 23

def node_types
  @node_types
end

#symbols_definedArray[String] (readonly)

Returns the value of attribute symbols_defined.

Returns:

  • (Array[String])


25
26
27
# File 'sig/types.rbs', line 25

def symbols_defined
  @symbols_defined
end

#total_chunksInteger (readonly)

Returns the value of attribute total_chunks.

Returns:

  • (Integer)


22
23
24
# File 'sig/types.rbs', line 22

def total_chunks
  @total_chunks
end