mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-22 13:51:31 +01:00
Fix @debug output. (#45)
This commit is contained in:
parent
2e0041d3c0
commit
b9df6f1334
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user