class Unparser::Writer::Rescue

def else_node

def else_node
  children.last
end

def emit_postcontrol

def emit_postcontrol
  visit(body) if body
  writer_with(Resbody, node: rescue_body).emit_postcontrol
end

def emit_regular

def emit_regular
  emit_optional_body(body)
  rescue_bodies.each(&method(:emit_rescue_body))
  if else_node
    write('else')
    emit_body(else_node)
  end
end

def emit_rescue_body(node)

def emit_rescue_body(node)
  writer_with(Resbody, node:).emit_regular
end