Class: TreeSitterLanguagePack::SymbolInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSymbolInfo

Returns a new instance of SymbolInfo.

Parameters:

  • name: (String)
  • kind: (SymbolKind)
  • span: (Span)
  • type_annotation: (String)
  • doc: (String)


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

def initialize: (?name: String, ?kind: SymbolKind, ?span: Span, ?type_annotation: String, ?doc: String) -> void

Instance Attribute Details

#docString? (readonly)

Returns the value of attribute doc.

Returns:

  • (String, nil)


264
265
266
# File 'sig/types.rbs', line 264

def doc
  @doc
end

#kindSymbolKind (readonly)

Returns the value of attribute kind.

Returns:



261
262
263
# File 'sig/types.rbs', line 261

def kind
  @kind
end

#nameString (readonly)

Returns the value of attribute name.

Returns:

  • (String)


260
261
262
# File 'sig/types.rbs', line 260

def name
  @name
end

#spanSpan (readonly)

Returns the value of attribute span.

Returns:



262
263
264
# File 'sig/types.rbs', line 262

def span
  @span
end

#type_annotationString? (readonly)

Returns the value of attribute type_annotation.

Returns:

  • (String, nil)


263
264
265
# File 'sig/types.rbs', line 263

def type_annotation
  @type_annotation
end