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:



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

#attributesArray[DataAttribute] (readonly)

Returns the value of attribute attributes.

Returns:



65
66
67
# File 'sig/types.rbs', line 65

def attributes
  @attributes
end

#childrenArray[DataNode] (readonly)

Returns the value of attribute children.

Returns:



66
67
68
# File 'sig/types.rbs', line 66

def children
  @children
end

#keyString? (readonly)

Returns the value of attribute key.

Returns:

  • (String, nil)


63
64
65
# File 'sig/types.rbs', line 63

def key
  @key
end

#kindDataNodeKind (readonly)

Returns the value of attribute kind.

Returns:



62
63
64
# File 'sig/types.rbs', line 62

def kind
  @kind
end

#spanSpan (readonly)

Returns the value of attribute span.

Returns:



67
68
69
# File 'sig/types.rbs', line 67

def span
  @span
end

#valueString? (readonly)

Returns the value of attribute value.

Returns:

  • (String, nil)


64
65
66
# File 'sig/types.rbs', line 64

def value
  @value
end