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

Unified Diff: utils/css/tree.dart

Issue 10915231: Changed interfaces to abstract classes in utils. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « utils/css/tokenizer_base.dart ('k') | utils/lib/file_system.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/css/tree.dart
===================================================================
--- utils/css/tree.dart (revision 12258)
+++ utils/css/tree.dart (working copy)
@@ -224,7 +224,7 @@
return 'SUBSTRING_MATCH';
}
}
-
+
String valueToString() {
if (_value is Identifier) {
return _value.name;
@@ -297,7 +297,7 @@
visit(TreeVisitor visitor) => visitor.visitStylesheet(this);
List<ASTNode> get topLevels => _topLevels;
-
+
String toString() {
StringBuffer buff = new StringBuffer();
for (final topLevel in _topLevels) {
@@ -700,7 +700,7 @@
UriTerm(String value, SourceSpan span) : super(value, value, span);
visit(TreeVisitor visitor) => visitor.visitUriTerm(this);
-
+
String toString() => 'url(${text})';
}
@@ -709,7 +709,7 @@
super(value, t, span);
visit(TreeVisitor visitor) => visitor.visitHexColorTerm(this);
-
+
String toString() => '#${text}';
}
@@ -816,7 +816,7 @@
visit(TreeVisitor visitor) => visitor.visitUnaryExpression(this);
}
-interface TreeVisitor {
+abstract class TreeVisitor {
void visitCssComment(CssComment node);
void visitCommentDefinition(CommentDefinition node);
void visitStylesheet(Stylesheet node);
@@ -830,7 +830,7 @@
void visitFontFaceDirective(FontFaceDirective node);
void visitIncludeDirective(IncludeDirective node);
void visitStyletDirective(StyletDirective node);
-
+
void visitRuleSet(RuleSet node);
void visitDeclarationGroup(DeclarationGroup node);
void visitDeclaration(Declaration node);
@@ -846,7 +846,7 @@
void visitPseudoClassSelector(PseudoClassSelector node);
void visitPseudoElementSelector(PseudoElementSelector node);
void visitNotSelector(NotSelector node);
-
+
void visitLiteralTerm(LiteralTerm node);
void visitHexColorTerm(HexColorTerm node);
void visitNumberTerm(NumberTerm node);
@@ -946,7 +946,7 @@
output.heading('KeyFrameBlock', node.span);
output.depth++;
visitExpressions(node._blockSelectors);
- visitDeclarationGroup(node._declarations);
+ visitDeclarationGroup(node._declarations);
output.depth--;
}
@@ -1175,7 +1175,7 @@
visitLiteralTerm(node);
output.depth--;
}
-
+
void visitEmTerm(EmTerm node) {
output.heading('EmTerm', node.span);
output.depth++;
« no previous file with comments | « utils/css/tokenizer_base.dart ('k') | utils/lib/file_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698