lib/sass/tree/visitors/perform.rb
# Prints the expression to STDERR with a stylesheet trace.
Prints the expression to STDERR with a stylesheet trace.
Prints the expression to STDERR with a stylesheet trace .
def visit_warn(node)
    @stack.push(:filename => node.filename, :line => node.line)
    res = node.expr.perform(@environment)
    res = res.value if res.is_a?(Sass::Script::String)
    msg = "WARNING: #{res}\n         "
    msg << stack_trace.join("\n         ")
    msg << (RUBY_PLATFORM =~ /java/ ? "\n\n" : "\n")
    Sass::Util.sass_warn msg
    []
  ensure
    @stack.pop
  end
def visit_warn ( node ) @stack . push ( :filename => node . filename , :line => node . line ) res = node . expr . perform ( @environment ) res = res . value if res . is_a? ( Sass :: Script :: String ) msg = "WARNING: #{res}\n         " msg << stack_trace . join ( "\n         " ) msg << ( RUBY_PLATFORM =~ / java / ? "\n\n" : "\n" ) Sass :: Util . sass_warn msg [ ] ensure @stack . pop end
Prints the expression to STDERR with a stylesheet trace.
Prints the expression to STDERR with a stylesheet trace .
# JRuby doesn't automatically add a newline for #warn
node