Class: TreeSitterLanguagePack::ProcessResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProcessResult

Returns a new instance of ProcessResult.

Parameters:



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

def initialize: (?language: String, ?metrics: FileMetrics, ?structure: Array[StructureItem], ?imports: Array[ImportInfo], ?exports: Array[ExportInfo], ?comments: Array[CommentInfo], ?docstrings: Array[DocstringInfo], ?symbols: Array[SymbolInfo], ?diagnostics: Array[Diagnostic], ?chunks: Array[CodeChunk], ?data: DataNode) -> void

Instance Attribute Details

#chunksArray[CodeChunk]?

Returns the value of attribute chunks.

Returns:



52
53
54
# File 'sig/types.rbs', line 52

def chunks
  @chunks
end

#commentsArray[CommentInfo]?

Returns the value of attribute comments.

Returns:



48
49
50
# File 'sig/types.rbs', line 48

def comments
  @comments
end

#dataDataNode?

Returns the value of attribute data.

Returns:



53
54
55
# File 'sig/types.rbs', line 53

def data
  @data
end

#diagnosticsArray[Diagnostic]?

Returns the value of attribute diagnostics.

Returns:



51
52
53
# File 'sig/types.rbs', line 51

def diagnostics
  @diagnostics
end

#docstringsArray[DocstringInfo]?

Returns the value of attribute docstrings.

Returns:



49
50
51
# File 'sig/types.rbs', line 49

def docstrings
  @docstrings
end

#exportsArray[ExportInfo]?

Returns the value of attribute exports.

Returns:



47
48
49
# File 'sig/types.rbs', line 47

def exports
  @exports
end

#importsArray[ImportInfo]?

Returns the value of attribute imports.

Returns:



46
47
48
# File 'sig/types.rbs', line 46

def imports
  @imports
end

#languageString?

Returns the value of attribute language.

Returns:

  • (String, nil)


43
44
45
# File 'sig/types.rbs', line 43

def language
  @language
end

#metricsFileMetrics?

Returns the value of attribute metrics.

Returns:



44
45
46
# File 'sig/types.rbs', line 44

def metrics
  @metrics
end

#structureArray[StructureItem]?

Returns the value of attribute structure.

Returns:



45
46
47
# File 'sig/types.rbs', line 45

def structure
  @structure
end

#symbolsArray[SymbolInfo]?

Returns the value of attribute symbols.

Returns:



50
51
52
# File 'sig/types.rbs', line 50

def symbols
  @symbols
end