Fix @debug output. (#45)

This commit is contained in:
Natalie Weizenbaum 2016-11-13 23:48:29 -08:00 committed by GitHub
parent 2e0041d3c0
commit b9df6f1334

View File

@ -308,8 +308,10 @@ class _PerformVisitor
}
Value visitDebugRule(DebugRule node) {
stderr.writeln("Line ${node.span.start.line + 1} DEBUG: "
"${node.expression.accept(this)}");
var start = node.span.start;
var value = node.expression.accept(this);
stderr.writeln("${p.prettyUri(start.sourceUrl)}:${start.line + 1} DEBUG: "
"${value is SassString ? value.text : value}");
return null;
}