new_body (RubyParser)

    # File lib/ruby_parser_extras.rb, line 433
      def new_body val
        result = val[0]

        if val[1] then
          result = s(:rescue)
          result << val[0] if val[0]

          resbody = val[1]

          while resbody do
            result << resbody
            resbody = resbody.resbody(true)
          end

          result << val[2] if val[2]

          result.line = (val[0] || val[1]).line
        elsif not val[2].nil? then
          warning("else without rescue is useless")
          result = block_append(result, val[2])
        end

        result = s(:ensure, result, val[3]).compact if val[3]
        return result
      end