Class: TreeSitterLanguagePack::StructureItem
- Inherits:
-
Object
- Object
- TreeSitterLanguagePack::StructureItem
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#body_span ⇒ Span?
readonly
Returns the value of attribute body_span.
-
#children ⇒ Array[StructureItem]
readonly
Returns the value of attribute children.
-
#decorators ⇒ Array[String]
readonly
Returns the value of attribute decorators.
-
#doc_comment ⇒ String?
readonly
Returns the value of attribute doc_comment.
-
#kind ⇒ StructureKind
readonly
Returns the value of attribute kind.
-
#name ⇒ String?
readonly
Returns the value of attribute name.
-
#signature ⇒ String?
readonly
Returns the value of attribute signature.
-
#span ⇒ Span
readonly
Returns the value of attribute span.
-
#visibility ⇒ String?
readonly
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.
256 |
# File 'sig/types.rbs', line 256
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? (readonly)
Returns the value of attribute body_span.
254 255 256 |
# File 'sig/types.rbs', line 254 def body_span @body_span end |
#children ⇒ Array[StructureItem] (readonly)
Returns the value of attribute children.
250 251 252 |
# File 'sig/types.rbs', line 250 def children @children end |
#decorators ⇒ Array[String] (readonly)
Returns the value of attribute decorators.
251 252 253 |
# File 'sig/types.rbs', line 251 def decorators @decorators end |
#doc_comment ⇒ String? (readonly)
Returns the value of attribute doc_comment.
252 253 254 |
# File 'sig/types.rbs', line 252 def doc_comment @doc_comment end |
#kind ⇒ StructureKind (readonly)
Returns the value of attribute kind.
246 247 248 |
# File 'sig/types.rbs', line 246 def kind @kind end |
#name ⇒ String? (readonly)
Returns the value of attribute name.
247 248 249 |
# File 'sig/types.rbs', line 247 def name @name end |
#signature ⇒ String? (readonly)
Returns the value of attribute signature.
253 254 255 |
# File 'sig/types.rbs', line 253 def signature @signature end |
#span ⇒ Span (readonly)
Returns the value of attribute span.
249 250 251 |
# File 'sig/types.rbs', line 249 def span @span end |
#visibility ⇒ String? (readonly)
Returns the value of attribute visibility.
248 249 250 |
# File 'sig/types.rbs', line 248 def visibility @visibility end |