This node wraps a constant write to indicate that when the value is written, it should have its shareability state modified.

# shareable_constant_value: literal
C = { a: 1 }
^^^^^^^^^^^^
Attributes
Read

The constant write that should be modified with the shareability state.

Class Methods

Initialize a new ShareableConstantNode node.

Return a symbol representation of this node type. See ‘Node::type`.

Instance Methods

Implements case-equality for the node. This is effectively == but without comparing the value of locations. Locations are checked only for presence.

def accept: (Visitor visitor) -> void

def child_nodes: () -> Array[nil | Node]

def comment_targets: () -> Array[Node | Location]

An alias for child_nodes

def experimental_copy?: () -> bool

def experimental_everything?: () -> bool

def inspect -> String

def literal?: () -> bool

Return a symbol representation of this node type. See ‘Node#type`.