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)


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

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

Instance Attribute Details

#docString?

Returns the value of attribute doc.

Returns:

  • (String, nil)


135
136
137
# File 'sig/types.rbs', line 135

def doc
  @doc
end

#kindSymbolKind?

Returns the value of attribute kind.

Returns:



132
133
134
# File 'sig/types.rbs', line 132

def kind
  @kind
end

#nameString?

Returns the value of attribute name.

Returns:

  • (String, nil)


131
132
133
# File 'sig/types.rbs', line 131

def name
  @name
end

#spanSpan?

Returns the value of attribute span.

Returns:



133
134
135
# File 'sig/types.rbs', line 133

def span
  @span
end

#type_annotationString?

Returns the value of attribute type_annotation.

Returns:

  • (String, nil)


134
135
136
# File 'sig/types.rbs', line 134

def type_annotation
  @type_annotation
end