lib/ruby_parser/bm_sexp.rb
#Join self and exp into an :or Sexp.
#Sets or_depth.
#Used for combining "branched" values in AliasProcessor.
Join self and exp into an :or Sexp.
Join self and exp into an : or Sexp .
def combine exp, line = nil
    combined = Sexp.new(:or, self, exp).line(line || -2)
    combined.or_depth = [self.or_depth, exp.or_depth].compact.reduce(0, :+) + 1
    combined
  end
def combine exp , line = nil combined = Sexp . new ( :or , self , exp ) . line ( line || - 2 ) combined . or_depth = [ self . or_depth , exp . or_depth ] . compact . reduce ( 0 , :+ ) + 1 combined end
Join self and exp into an :or Sexp.
Join self and exp into an : or Sexp .
exp
<not_specific>
line
<not_specific>