Class: TreeSitterLanguagePack::DataNode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDataNode

Returns a new instance of DataNode.

Parameters:



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

#attributesArray[DataAttribute]?

Returns the value of attribute attributes.

Returns:



24
25
26
# File 'sig/types.rbs', line 24

def attributes
  @attributes
end

#childrenArray[DataNode]?

Returns the value of attribute children.

Returns:



25
26
27
# File 'sig/types.rbs', line 25

def children
  @children
end

#keyString?

Returns the value of attribute key.

Returns:

  • (String, nil)


22
23
24
# File 'sig/types.rbs', line 22

def key
  @key
end

#kindDataNodeKind?

Returns the value of attribute kind.

Returns:



21
22
23
# File 'sig/types.rbs', line 21

def kind
  @kind
end

#spanSpan?

Returns the value of attribute span.

Returns:



26
27
28
# File 'sig/types.rbs', line 26

def span
  @span
end

#valueString?

Returns the value of attribute value.

Returns:

  • (String, nil)


23
24
25
# File 'sig/types.rbs', line 23

def value
  @value
end