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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartTypeNode.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/DartTypeNode.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartTypeNode.java b/compiler/java/com/google/dart/compiler/ast/DartTypeNode.java
index 58cf8b0f464b586594fe398ad161fb13ba27ce42..b6ccbd330b6cc834b656ea8998f86de423fef718 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartTypeNode.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartTypeNode.java
@@ -46,22 +46,13 @@ public class DartTypeNode extends DartNode {
}
@Override
- public void traverse(DartVisitor v, DartContext ctx) {
- if (v.visit(this, ctx)) {
- identifier = becomeParentOf(v.accept(identifier));
- v.acceptWithInsertRemove(this, typeArguments);
- }
- v.endVisit(this, ctx);
- }
-
- @Override
- public void visitChildren(DartPlainVisitor<?> visitor) {
+ public void visitChildren(ASTVisitor<?> visitor) {
identifier.accept(visitor);
visitor.visit(typeArguments);
}
@Override
- public <R> R accept(DartPlainVisitor<R> visitor) {
+ public <R> R accept(ASTVisitor<R> visitor) {
return visitor.visitTypeNode(this);
}
}

Powered by Google App Engine
This is Rietveld 408576698