Previously, we had a child node on this class that contained either a constant read or a missing node. To not cause a breaking change, we continue to supply that API.
Initialize a new ConstantPathWriteNode
node.
def accept: (Visitor
visitor) -> void
def child_nodes
: () -> Array[nil | Node]
def operator: () -> String
Return a symbol representation of this node type. See ‘Node#type`.
Return a symbol representation of this node type. See ‘Node::type`.
Implements case-equality for the node. This is effectively == but without comparing the value of locations. Locations are checked only for presence.
Initialize a new ConstantReadNode
node.
def accept: (Visitor
visitor) -> void
def child_nodes
: () -> Array[nil | Node]
Return a symbol representation of this node type. See ‘Node#type`.
Return a symbol representation of this node type. See ‘Node::type`.
Implements case-equality for the node. This is effectively == but without comparing the value of locations. Locations are checked only for presence.
Returns the list of parts for the full name of this constant. For example: [:Foo]
Returns the full name of this constant. For example: “Foo”
Initialize a new ConstantTargetNode
node.
def accept: (Visitor
visitor) -> void
def child_nodes
: () -> Array[nil | Node]
Return a symbol representation of this node type. See ‘Node#type`.
Return a symbol representation of this node type. See ‘Node::type`.
Implements case-equality for the node. This is effectively == but without comparing the value of locations. Locations are checked only for presence.
Returns the list of parts for the full name of this constant. For example: [:Foo]
Returns the full name of this constant. For example: “Foo”