Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(965)

Unified Diff: lib/src/css_printer.dart

Issue 1407333002: Added beginning support for calc however, the expression is not fully parsed into the AST. (Closed) Base URL: https://github.com/dart-lang/csslib.git@master
Patch Set: Update CHANGELOG.md Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/parser.dart ('k') | lib/src/tree.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/css_printer.dart
diff --git a/lib/src/css_printer.dart b/lib/src/css_printer.dart
index 125b5aefb41e634931c0be24265c2f4c75d8f58b..a62ca47755562f04dae48ea7d665568efafe5de1 100644
--- a/lib/src/css_printer.dart
+++ b/lib/src/css_printer.dart
@@ -38,6 +38,12 @@ class CssPrinter extends Visitor {
// flag for obfuscation.
bool get _isTesting => !prettyPrint;
+ void visitCalcTerm(CalcTerm node) {
+ emit('${node.text}(');
+ node.expr.visit(this);
+ emit(')');
+ }
+
void visitCssComment(CssComment node) {
emit('/* ${node.comment} */');
}
« no previous file with comments | « lib/parser.dart ('k') | lib/src/tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698