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 binary operator used to modify the receiver. This method is deprecated in favor of binary_operator
.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc
.
Initialize a new ConstantPathOrWriteNode
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 ConstantPathTargetNode
node.
def accept: (Visitor
visitor) -> void
def child_nodes
: () -> Array[nil | Node]
def delimiter: () -> 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.
Returns the list of parts for the full name of this constant path. For example: [:Foo, :Bar]
Returns the full name of this constant path. For example: “Foo::Bar”