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 ConstantPathAndWriteNode
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 ConstantPathNode
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”
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 ConstantPathOperatorWriteNode
node.
def accept: (Visitor
visitor) -> void
def child_nodes
: () -> Array[nil | Node]