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

Unified Diff: lib/visitor.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/src/tree_printer.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/visitor.dart
diff --git a/lib/visitor.dart b/lib/visitor.dart
index 593e43a5517912433c6ca0c58bffc39709fd2bf8..b6babbdf5c80ab7dee56352a8af895fd6abc179d 100644
--- a/lib/visitor.dart
+++ b/lib/visitor.dart
@@ -13,6 +13,7 @@ part 'src/tree_base.dart';
part 'src/tree_printer.dart';
abstract class VisitorBase {
+ visitCalcTerm(CalcTerm node);
visitCssComment(CssComment node);
visitCommentDefinition(CommentDefinition node);
visitStyleSheet(StyleSheet node);
@@ -132,6 +133,11 @@ class Visitor implements VisitorBase {
visitDirective(Directive node) {}
+ visitCalcTerm(CalcTerm node) {
+ visitLiteralTerm(node);
+ visitLiteralTerm(node.expr);
+ }
+
visitCssComment(CssComment node) {}
visitCommentDefinition(CommentDefinition node) {}
« no previous file with comments | « lib/src/tree_printer.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698