def process_defn exp
meth_name = exp.method_name
Brakeman.debug "Processing #{@current_class}##{meth_name}"
return exp if @current_method.nil? and @only_method and @only_method != meth_name
is_route = route? meth_name
other_method = @current_method
@current_method = meth_name
@rendered = false if is_route
meth_env do
if is_route
before_filter_list(@current_method, @current_class).each do |f|
process_before_filter f
end
end
process_all exp.body
if is_route and not @rendered
process_default_render exp
end
end
@current_method = other_method
exp
end