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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/SafeDartNodeTraverser.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/SafeDartNodeTraverser.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/SafeDartNodeTraverser.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/SafeDartNodeTraverser.java
index 084d684fb2ddc82c0cf1c9ef13c60813cd3e2f0a..4700003c1e7b7ceed1512fb4e5b36569abbf0abe 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/SafeDartNodeTraverser.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/SafeDartNodeTraverser.java
@@ -14,18 +14,17 @@
package com.google.dart.tools.core.dom.visitor;
import com.google.dart.compiler.ast.DartNode;
-import com.google.dart.compiler.ast.DartNodeTraverser;
-import com.google.dart.compiler.ast.DartPlainVisitor;
+import com.google.dart.compiler.ast.ASTVisitor;
import com.google.dart.tools.core.DartCore;
/**
- * Instances of the class <code>SafeDartNodeTraverser</code> implement a {@link DartPlainVisitor
- * Dart visitor} that will not throw an exception as a result of finding an incorrectly constructed
- * AST structure. In order to catch exceptions, any method that needs to visit the children of a
- * given node should use the method {@link #visitChildren(DartNode)} rather than asking the node to
- * visit its children directly.
+ * Instances of the class <code>SafeDartNodeTraverser</code> implement a {@link ASTVisitor}
+ * that will not throw an exception as a result of finding an incorrectly constructed AST structure.
+ * In order to catch exceptions, any method that needs to visit the children of a given node should
+ * use the method {@link #visitChildren(DartNode)} rather than asking the node to visit its children
+ * directly.
*/
-public class SafeDartNodeTraverser<R> extends DartNodeTraverser<R> {
+public class SafeDartNodeTraverser<R> extends ASTVisitor<R> {
/*
* Note that this implementation does not maximize the number of nodes that are visited, even
* though doing so might be a desirable trait. In order to do so I believe that we would have to

Powered by Google App Engine
This is Rietveld 408576698