lib/brakeman/processors/alias_processor.rb
def top_target exp, last = nil
    if call? exp
      top_target exp.target, exp
    elsif node_type? exp, :iter
      top_target exp.block_call, last
    else
      exp || last
    end
  end
#Returns last non-nil target in a call chain
Returns last non-nil target in a call chain
Returns last non - nil target in a call chain
def top_target exp, last = nil
    if call? exp
      top_target exp.target, exp
    elsif node_type? exp, :iter
      top_target exp.block_call, last
    else
      exp || last
    end
  end
def top_target exp , last = nil if call? exp top_target exp . target , exp elsif node_type? exp , :iter top_target exp . block_call , last else exp || last end end
Returns last non-nil target in a call chain
Returns last non - nil target in a call chain
exp
last