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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartBreakStatement.java

Issue 9598002: Use ASTVisitor as in new AST. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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
Index: compiler/java/com/google/dart/compiler/ast/DartBreakStatement.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartBreakStatement.java b/compiler/java/com/google/dart/compiler/ast/DartBreakStatement.java
index 4f25c14be313c76a1dc37a1d432d7cd6621ec291..7d51c330d70866ee4f0fbf754329429b6f07353e 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartBreakStatement.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartBreakStatement.java
@@ -19,16 +19,7 @@ public class DartBreakStatement extends DartGotoStatement {
}
@Override
- public void traverse(DartVisitor v, DartContext ctx) {
- DartIdentifier label = getLabel();
- if (v.visit(this, ctx) && label != null) {
- label = becomeParentOf(v.accept(label));
- }
- v.endVisit(this, ctx);
- }
-
- @Override
- public <R> R accept(DartPlainVisitor<R> visitor) {
+ public <R> R accept(ASTVisitor<R> visitor) {
return visitor.visitBreakStatement(this);
}
}

Powered by Google App Engine
This is Rietveld 408576698