Class: TreeSitterLanguagePack::DataNode
- Inherits:
-
Object
- Object
- TreeSitterLanguagePack::DataNode
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#attributes ⇒ Array[DataAttribute]?
Returns the value of attribute attributes.
-
#children ⇒ Array[DataNode]?
Returns the value of attribute children.
-
#key ⇒ String?
Returns the value of attribute key.
-
#kind ⇒ DataNodeKind?
Returns the value of attribute kind.
-
#span ⇒ Span?
Returns the value of attribute span.
-
#value ⇒ String?
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize ⇒ DataNode
constructor
A new instance of DataNode.
Constructor Details
#initialize ⇒ DataNode
Returns a new instance of DataNode.
28 |
# File 'sig/types.rbs', line 28
def initialize: (?kind: DataNodeKind, ?key: String, ?value: String, ?attributes: Array[DataAttribute], ?children: Array[DataNode], ?span: Span) -> void
|
Instance Attribute Details
#attributes ⇒ Array[DataAttribute]?
Returns the value of attribute attributes.
24 25 26 |
# File 'sig/types.rbs', line 24 def attributes @attributes end |
#children ⇒ Array[DataNode]?
Returns the value of attribute children.
25 26 27 |
# File 'sig/types.rbs', line 25 def children @children end |
#key ⇒ String?
Returns the value of attribute key.
22 23 24 |
# File 'sig/types.rbs', line 22 def key @key end |
#kind ⇒ DataNodeKind?
Returns the value of attribute kind.
21 22 23 |
# File 'sig/types.rbs', line 21 def kind @kind end |
#span ⇒ Span?
Returns the value of attribute span.
26 27 28 |
# File 'sig/types.rbs', line 26 def span @span end |
#value ⇒ String?
Returns the value of attribute value.
23 24 25 |
# File 'sig/types.rbs', line 23 def value @value end |