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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartClass.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/DartClass.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartClass.java b/compiler/java/com/google/dart/compiler/ast/DartClass.java
index a8045cd5f28faf9e8983591e28316fd4739cb437..fa21514a87fe844b26fc3e15fa6e14546e6506af 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartClass.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartClass.java
@@ -169,27 +169,7 @@ public class DartClass extends DartDeclaration<DartIdentifier> implements HasSym
}
@Override
- public void traverse(DartVisitor v, DartContext ctx) {
- if (v.visit(this, ctx)) {
- if (superclass != null) {
- superclass = becomeParentOf(v.accept(superclass));
- }
- v.acceptWithInsertRemove(this, getMembers());
- if (getTypeParameters() != null) {
- v.acceptWithInsertRemove(this, getTypeParameters());
- }
- if (getInterfaces() != null) {
- v.acceptWithInsertRemove(this, getInterfaces());
- }
- if (defaultClass != null) {
- defaultClass = becomeParentOf(v.accept(defaultClass));
- }
- }
- v.endVisit(this, ctx);
- }
-
- @Override
- public void visitChildren(DartPlainVisitor<?> visitor) {
+ public void visitChildren(ASTVisitor<?> visitor) {
visitor.visit(typeParameters);
if (superclass != null) {
superclass.accept(visitor);
@@ -202,7 +182,7 @@ public class DartClass extends DartDeclaration<DartIdentifier> implements HasSym
}
@Override
- public <R> R accept(DartPlainVisitor<R> visitor) {
+ public <R> R accept(ASTVisitor<R> visitor) {
return visitor.visitClass(this);
}
}

Powered by Google App Engine
This is Rietveld 408576698