Class: TreeSitterLanguagePack::StructureItem
- Inherits:
-
Object
- Object
- TreeSitterLanguagePack::StructureItem
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#body_span ⇒ Span?
Returns the value of attribute body_span.
-
#children ⇒ Array[StructureItem]?
Returns the value of attribute children.
-
#decorators ⇒ Array[String]?
Returns the value of attribute decorators.
-
#doc_comment ⇒ String?
Returns the value of attribute doc_comment.
-
#kind ⇒ StructureKind?
Returns the value of attribute kind.
-
#name ⇒ String?
Returns the value of attribute name.
-
#signature ⇒ String?
Returns the value of attribute signature.
-
#span ⇒ Span?
Returns the value of attribute span.
-
#visibility ⇒ String?
Returns the value of attribute visibility.
Instance Method Summary collapse
-
#initialize ⇒ StructureItem
constructor
A new instance of StructureItem.
Constructor Details
#initialize ⇒ StructureItem
Returns a new instance of StructureItem.
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_span ⇒ Span?
Returns the value of attribute body_span.
80 81 82 |
# File 'sig/types.rbs', line 80 def body_span @body_span end |
#children ⇒ Array[StructureItem]?
Returns the value of attribute children.
76 77 78 |
# File 'sig/types.rbs', line 76 def children @children end |
#decorators ⇒ Array[String]?
Returns the value of attribute decorators.
77 78 79 |
# File 'sig/types.rbs', line 77 def decorators @decorators end |
#doc_comment ⇒ String?
Returns the value of attribute doc_comment.
78 79 80 |
# File 'sig/types.rbs', line 78 def doc_comment @doc_comment end |
#kind ⇒ StructureKind?
Returns the value of attribute kind.
72 73 74 |
# File 'sig/types.rbs', line 72 def kind @kind end |
#name ⇒ String?
Returns the value of attribute name.
73 74 75 |
# File 'sig/types.rbs', line 73 def name @name end |
#signature ⇒ String?
Returns the value of attribute signature.
79 80 81 |
# File 'sig/types.rbs', line 79 def signature @signature end |
#span ⇒ Span?
Returns the value of attribute span.
75 76 77 |
# File 'sig/types.rbs', line 75 def span @span end |
#visibility ⇒ String?
Returns the value of attribute visibility.
74 75 76 |
# File 'sig/types.rbs', line 74 def visibility @visibility end |