class SyntaxTree::MRHS
values = first, second, third
a multiple assignment.
MRHS represents the values that are being assigned on the right-hand side of
def ===(other)
def ===(other) other.is_a?(MRHS) && ArrayMatch.call(parts, other.parts) end
def accept(visitor)
def accept(visitor) visitor.visit_mrhs(self) end
def child_nodes
def child_nodes parts end
def copy(parts: nil, location: nil)
def copy(parts: nil, location: nil) node = MRHS.new( parts: parts || self.parts, location: location || self.location ) node.comments.concat(comments.map(&:copy)) node end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { parts: parts, location: location, comments: comments } end
def format(q)
def format(q) q.seplist(parts) { |part| q.format(part) } end
def initialize(parts:, location:)
def initialize(parts:, location:) @parts = parts @location = location @comments = [] end