提交 605e3602 编写于 作者: J Justin Collins

Set original lines when rendering templates

上级 4969b5e7
......@@ -102,6 +102,14 @@ module Brakeman::RenderHelper
template_env[Sexp.new(:call, nil, variable, Sexp.new(:arglist))] = Sexp.new(:call, Sexp.new(:const, Brakeman::Tracker::UNKNOWN_MODEL), :new, Sexp.new(:arglist))
end
#Set original_line for values so it is clear
#that values came from another file
template_env.all.each do |var, value|
unless value.original_line
value.original_line = value.line
end
end
#Run source through AliasProcessor with instance variables from the
#current environment.
#TODO: Add in :locals => { ... } to environment
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册