From f15d3d8e59d9a4ffa2186a88a159cbe18c4424a8 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Fri, 30 Sep 2016 16:44:47 -0700 Subject: [PATCH] Add a few missing valueToCss() calls. --- lib/src/visitor/perform.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/visitor/perform.dart b/lib/src/visitor/perform.dart index 2f1558ec..9d7a8940 100644 --- a/lib/src/visitor/perform.dart +++ b/lib/src/visitor/perform.dart @@ -545,9 +545,10 @@ class PerformVisitor implements StatementVisitor, ExpressionVisitor { } else if (condition is SupportsNegation) { return "not ${_parenthesize(condition.condition)}"; } else if (condition is SupportsInterpolation) { - return condition.expression.accept(this).toString(); + return valueToCss(condition.expression.accept(this)); } else if (condition is SupportsDeclaration) { - return "(${condition.name.accept(this)}: ${condition.value.accept(this)})"; + return "(${valueToCss(condition.name.accept(this))}: " + "${valueToCss(condition.value.accept(this))})"; } else { return null; } @@ -729,7 +730,7 @@ class PerformVisitor implements StatementVisitor, ExpressionVisitor { // TODO: if rest is an arglist that has keywords, error out. var rest = node.arguments.rest?.accept(this); if (rest != null) arguments.add(rest); - return new SassString("$name(${arguments.join(', ')})"); + return new SassString("$name(${arguments.map(valueToCss).join(', ')})"); } Value _runUserDefinedCallable(CallableInvocation invocation,