Class: TreeSitterLanguagePack::DataNode
- Inherits:
-
Object
- Object
- TreeSitterLanguagePack::DataNode
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#attributes ⇒ Array[DataAttribute]
readonly
Returns the value of attribute attributes.
-
#children ⇒ Array[DataNode]
readonly
Returns the value of attribute children.
-
#key ⇒ String?
readonly
Returns the value of attribute key.
-
#kind ⇒ DataNodeKind
readonly
Returns the value of attribute kind.
-
#span ⇒ Span
readonly
Returns the value of attribute span.
-
#value ⇒ String?
readonly
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.
69 |
# File 'sig/types.rbs', line 69
def initialize: (?kind: DataNodeKind, ?key: String, ?value: String, ?attributes: Array[DataAttribute], ?children: Array[DataNode], ?span: Span) -> void
|
Instance Attribute Details
#attributes ⇒ Array[DataAttribute] (readonly)
Returns the value of attribute attributes.
65 66 67 |
# File 'sig/types.rbs', line 65 def attributes @attributes end |
#children ⇒ Array[DataNode] (readonly)
Returns the value of attribute children.
66 67 68 |
# File 'sig/types.rbs', line 66 def children @children end |
#key ⇒ String? (readonly)
Returns the value of attribute key.
63 64 65 |
# File 'sig/types.rbs', line 63 def key @key end |
#kind ⇒ DataNodeKind (readonly)
Returns the value of attribute kind.
62 63 64 |
# File 'sig/types.rbs', line 62 def kind @kind end |
#span ⇒ Span (readonly)
Returns the value of attribute span.
67 68 69 |
# File 'sig/types.rbs', line 67 def span @span end |
#value ⇒ String? (readonly)
Returns the value of attribute value.
64 65 66 |
# File 'sig/types.rbs', line 64 def value @value end |