class YARP::AssocSplatNode
^^^^^
{ **foo }
Represents a splat in a hash literal.
def accept(visitor)
def accept(visitor) visitor.visit_assoc_splat_node(self) end
def child_nodes
def child_nodes [value] end
def comment_targets
def comment_targets [*value, operator_loc] end
def copy(**params)
def copy(**params) AssocSplatNode.new( params.fetch(:value) { value }, params.fetch(:operator_loc) { operator_loc }, params.fetch(:location) { location }, ) end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { value: value, operator_loc: operator_loc, location: location } end
def initialize(value, operator_loc, location)
def initialize(value, operator_loc, location) @value = value @operator_loc = operator_loc @location = location end
def inspect(inspector = NodeInspector.new)
def inspect(inspector = NodeInspector.new) inspector << inspector.header(self) if (value = self.value).nil? inspector << "├── value: ∅\n" else inspector << "├── value:\n" inspector << value.inspect(inspector.child_inspector("│ ")).delete_prefix(inspector.prefix) end inspector << "└── operator_loc: #{inspector.location(operator_loc)}\n" inspector.to_str end
def operator
def operator operator_loc.slice end