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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/ChildVisitor.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: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/ChildVisitor.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/ChildVisitor.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/ChildVisitor.java
index 18ab82c21d6c4428ca68e5a9f6117a43c3f6ddc8..dcca83efa3b2ff9b1bb8f416182464165ec74bfc 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/ChildVisitor.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/ChildVisitor.java
@@ -22,9 +22,8 @@ import com.google.dart.compiler.ast.DartLabel;
import com.google.dart.compiler.ast.DartMapLiteralEntry;
import com.google.dart.compiler.ast.DartMethodDefinition;
import com.google.dart.compiler.ast.DartNode;
-import com.google.dart.compiler.ast.DartNodeTraverser;
+import com.google.dart.compiler.ast.ASTVisitor;
import com.google.dart.compiler.ast.DartParameter;
-import com.google.dart.compiler.ast.DartPlainVisitor;
import com.google.dart.compiler.ast.DartTypeParameter;
import com.google.dart.compiler.ast.DartVariable;
@@ -33,13 +32,13 @@ import com.google.dart.compiler.ast.DartVariable;
* children of the node being visited by the <code>ChildVisitor</code>. Typically, that visitor will
* then use the child visitor to visit all of the children of those nodes. This class is needed
* because several nodes do not visit all of their children as part of the
- * {@link DartNode#visitChildren(DartPlainVisitor)} method.
+ * {@link DartNode#visitChildren(ASTVisitor)} method.
*/
-public class ChildVisitor<R> extends DartNodeTraverser<Void> {
+public class ChildVisitor<R> extends ASTVisitor<Void> {
/**
* The visitor used to visit the children of the node being visited by this visitor.
*/
- private DartPlainVisitor<R> baseVisitor;
+ private ASTVisitor<R> baseVisitor;
/**
* Initialize a newly created visitor to use the given visitor to visit all of the children of
@@ -48,7 +47,7 @@ public class ChildVisitor<R> extends DartNodeTraverser<Void> {
* @param baseVisitor the visitor used to visit the children of the node being visited by this
* visitor
*/
- public ChildVisitor(DartPlainVisitor<R> baseVisitor) {
+ public ChildVisitor(ASTVisitor<R> baseVisitor) {
this.baseVisitor = baseVisitor;
}

Powered by Google App Engine
This is Rietveld 408576698