vendor/bundle/ruby/3.0.0/gems/brakeman-5.2.2/bundle/ruby/2.7.0/gems/ruby2ruby-2.4.4/lib/ruby2ruby.rb
# TODO: figure out how to do rescue and ensure ENTIRELY w/o begin
figure out how to do rescue and ensure ENTIRELY w/o begin
figure out how to do rescue and ensure ENTIRELY w / o begin
def process_begin exp 
    _, *rest = exp
    code = rest.map { |sexp|
      src = process sexp
      src = indent src unless src =~ /(^|\n)(rescue|ensure)/ 
      src
    }
    code.unshift "begin"
    code.push "end"
    code.join "\n"
  end
def process_begin exp _ , * rest = exp code = rest . map { | sexp | src = process sexp src = indent src unless src =~ / (^| \n )(rescue|ensure) / src } code . unshift "begin" code . push "end" code . join "\n" end
TODO: figure out how to do rescue and ensure ENTIRELY w/o begin
TODO : figure out how to do rescue and ensure ENTIRELY w / o begin
# :nodoc: # ensure no level 0 rescues
exp