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

Unified Diff: utils/css/tree.dart

Issue 9190066: Fixed collision with interface Comment in html and Comment in the CSS tree. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 | « no previous file | utils/css/uitest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/css/tree.dart
diff --git a/utils/css/tree.dart b/utils/css/tree.dart
index b4351fcadea643a5cf9d707b291516fd265d5694..b6124377d4231acc1ef463a54b83177dbf3a71ce 100644
--- a/utils/css/tree.dart
+++ b/utils/css/tree.dart
@@ -27,18 +27,18 @@ class Wildcard extends lang.Node {
}
// /* .... */
-class Comment extends lang.Node {
+class CssComment extends lang.Node {
String comment;
- Comment(this.comment, lang.SourceSpan span): super(span);
+ CssComment(this.comment, lang.SourceSpan span): super(span);
- visit(TreeVisitor visitor) => visitor.visitComment(this);
+ visit(TreeVisitor visitor) => visitor.visitCssComment(this);
String toString() => '/* ${comment} */';
}
// CDO/CDC (Comment Definition Open <!-- and Comment Definition Close -->).
-class CommentDefinition extends Comment {
+class CommentDefinition extends CssComment {
CommentDefinition(String comment, lang.SourceSpan span): super(comment, span);
visit(TreeVisitor visitor) => visitor.visitCommentDefinition(this);
@@ -817,7 +817,7 @@ class UnaryExpression extends lang.Expression {
}
interface TreeVisitor {
- void visitComment(Comment node);
+ void visitCssComment(CssComment node);
void visitCommentDefinition(CommentDefinition node);
void visitStylesheet(Stylesheet node);
void visitTopLevelProduction(TopLevelProduction node);
@@ -896,7 +896,7 @@ class TreePrinter implements TreeVisitor {
output.heading('Directive', node.span);
}
- void visitComment(Comment node) {
+ void visitCssComment(CssComment node) {
output.heading('Comment', node.span);
output.depth++;
output.writeValue('comment value', node.comment);
« no previous file with comments | « no previous file | utils/css/uitest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698