Class: TreeSitterLanguagePack::StructureItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStructureItem

Returns a new instance of StructureItem.

Parameters:

  • kind: (StructureKind)
  • name: (String)
  • visibility: (String)
  • span: (Span)
  • children: (Array[StructureItem])
  • decorators: (Array[String])
  • doc_comment: (String)
  • signature: (String)
  • body_span: (Span)


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

def initialize: (?kind: StructureKind, ?name: String, ?visibility: String, ?span: Span, ?children: Array[StructureItem], ?decorators: Array[String], ?doc_comment: String, ?signature: String, ?body_span: Span) -> void

Instance Attribute Details

#body_spanSpan?

Returns the value of attribute body_span.

Returns:



80
81
82
# File 'sig/types.rbs', line 80

def body_span
  @body_span
end

#childrenArray[StructureItem]?

Returns the value of attribute children.

Returns:



76
77
78
# File 'sig/types.rbs', line 76

def children
  @children
end

#decoratorsArray[String]?

Returns the value of attribute decorators.

Returns:

  • (Array[String], nil)


77
78
79
# File 'sig/types.rbs', line 77

def decorators
  @decorators
end

#doc_commentString?

Returns the value of attribute doc_comment.

Returns:

  • (String, nil)


78
79
80
# File 'sig/types.rbs', line 78

def doc_comment
  @doc_comment
end

#kindStructureKind?

Returns the value of attribute kind.

Returns:



72
73
74
# File 'sig/types.rbs', line 72

def kind
  @kind
end

#nameString?

Returns the value of attribute name.

Returns:

  • (String, nil)


73
74
75
# File 'sig/types.rbs', line 73

def name
  @name
end

#signatureString?

Returns the value of attribute signature.

Returns:

  • (String, nil)


79
80
81
# File 'sig/types.rbs', line 79

def signature
  @signature
end

#spanSpan?

Returns the value of attribute span.

Returns:



75
76
77
# File 'sig/types.rbs', line 75

def span
  @span
end

#visibilityString?

Returns the value of attribute visibility.

Returns:

  • (String, nil)


74
75
76
# File 'sig/types.rbs', line 74

def visibility
  @visibility
end