class Unparser::Emitter::Assignment

Base class for assignment emitters

def dispatch

def dispatch
  emit_left
  emit_right
end

def emit_array

def emit_array
  if right.children.size > 1
    delimited(right.children)
  else
    right_emitter.write_to_buffer
  end
end

def emit_right

def emit_right
  return unless right
  write(' = ')
  if BINARY_OPERATOR.include?(right.type)
    writer_with(Writer::Binary, node: right).emit_operator
  elsif n_array?(right)
    emit_array
  else
    right_emitter.write_to_buffer
  end
end

def right_emitter

def right_emitter
  emitter(right)
end

def symbol_name

def symbol_name
  true
end