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:



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

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

Returns the value of attribute chunks.

Returns:



228
229
230
# File 'sig/types.rbs', line 228

def chunks
  @chunks
end

#commentsArray[CommentInfo] (readonly)

Returns the value of attribute comments.

Returns:



224
225
226
# File 'sig/types.rbs', line 224

def comments
  @comments
end

#dataDataNode? (readonly)

Returns the value of attribute data.

Returns:



229
230
231
# File 'sig/types.rbs', line 229

def data
  @data
end

#diagnosticsArray[Diagnostic] (readonly)

Returns the value of attribute diagnostics.

Returns:



227
228
229
# File 'sig/types.rbs', line 227

def diagnostics
  @diagnostics
end

#docstringsArray[DocstringInfo] (readonly)

Returns the value of attribute docstrings.

Returns:



225
226
227
# File 'sig/types.rbs', line 225

def docstrings
  @docstrings
end

#exportsArray[ExportInfo] (readonly)

Returns the value of attribute exports.

Returns:



223
224
225
# File 'sig/types.rbs', line 223

def exports
  @exports
end

#importsArray[ImportInfo] (readonly)

Returns the value of attribute imports.

Returns:



222
223
224
# File 'sig/types.rbs', line 222

def imports
  @imports
end

#languageString (readonly)

Returns the value of attribute language.

Returns:

  • (String)


219
220
221
# File 'sig/types.rbs', line 219

def language
  @language
end

#metricsFileMetrics (readonly)

Returns the value of attribute metrics.

Returns:



220
221
222
# File 'sig/types.rbs', line 220

def metrics
  @metrics
end

#structureArray[StructureItem] (readonly)

Returns the value of attribute structure.

Returns:



221
222
223
# File 'sig/types.rbs', line 221

def structure
  @structure
end

#symbolsArray[SymbolInfo] (readonly)

Returns the value of attribute symbols.

Returns:



226
227
228
# File 'sig/types.rbs', line 226

def symbols
  @symbols
end