class Unparser::Emitter::Index::Assign

Emitter for assign to index nodes

def dispatch

def dispatch
  emit_receiver
  emit_operation(children[VALUE_RANGE])
  write(' = ')
  visit(children.last)
end

def emit_mlhs

def emit_mlhs
  emit_receiver
  emit_operation(children.drop(1))
end

def emit_operation(indices)

def emit_operation(indices)
  parentheses('[', ']') do
    delimited(indices)
  end
end