vendor/bundle/ruby/3.0.0/gems/brakeman-5.2.2/bundle/ruby/2.7.0/gems/sexp_processor-4.16.0/lib/sexp.rb
def find_and_replace_all from, to
    each_with_index do | elem, index |
      if Sexp === elem then
        elem.find_and_replace_all(from, to)
      elsif elem == from
        self[index] = to
      end
    end
  end
##
# Replaces all elements whose node_type is +from+ with +to+. Used
# only for the most trivial of rewrites.
Replaces all elements whose node_type is +from+ with +to+. Used
only for the most trivial of rewrites.
Replaces all elements whose node_type is + from + with + to + . Used only for the most trivial of rewrites .
def find_and_replace_all from, to
    each_with_index do | elem, index |
      if Sexp === elem then
        elem.find_and_replace_all(from, to)
      elsif elem == from
        self[index] = to
      end
    end
  end
def find_and_replace_all from , to each_with_index do | elem , index | if Sexp === elem then elem . find_and_replace_all ( from , to ) elsif elem == from self [ index ] = to end end end
Replaces all elements whose node_type is +from+ with +to+.
Replaces all elements whose node_type is + from + with + to + .
from
to