# File lib/brakeman/warning.rb, line 253
  def location include_renderer = true
    case @warning_set
    when :template
      location = { :type => :template, :template => self.view_name(include_renderer) }
    when :model
      location = { :type => :model, :model => self.model }
    when :controller
      location = { :type => :controller, :controller => self.controller }
    when :warning
      if self.class
        location = { :type => :method, :class => self.class, :method => self.method }
      else
        location = nil
      end
    end
  end