class SyntaxTree::MLHSParen


(left, right) = value
assignment on the left hand side.
MLHSParen represents parentheses being used to destruct values in a multiple

def ===(other)

def ===(other)
  other.is_a?(MLHSParen) && contents === other.contents
end

def accept(visitor)

def accept(visitor)
  visitor.visit_mlhs_paren(self)
end

def child_nodes

def child_nodes
  [contents]
end

def copy(contents: nil, location: nil)

def copy(contents: nil, location: nil)
  node =
    MLHSParen.new(
      contents: contents || self.contents,
      location: location || self.location
    )
  node.comments.concat(comments.map(&:copy))
  node
end

def deconstruct_keys(_keys)

def deconstruct_keys(_keys)
  { contents: contents, location: location, comments: comments }
end

def format(q)

def format(q)
  parent = q.parent
  if parent.is_a?(MAssign) || parent.is_a?(MLHSParen)
    q.format(contents)
    q.text(",") if comma
  else
    q.text("(")
    q.group do
      q.indent do
        q.breakable_empty
        q.format(contents)
      end
      q.text(",") if comma
      q.breakable_empty
    end
    q.text(")")
  end
end

def initialize(contents:, location:, comma: false)

def initialize(contents:, location:, comma: false)
  @contents = contents
  @comma = comma
  @location = location
  @comments = []
end