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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/TypeRefiner.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/internal/completion/TypeRefiner.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/TypeRefiner.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/TypeRefiner.java
index c88a27b41d43c240731a696c5b563af62aea605c..457c9d86bc8a1f5f64fcb0e558929a70e2b6fe58 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/TypeRefiner.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/TypeRefiner.java
@@ -9,7 +9,7 @@ import com.google.dart.compiler.ast.DartForStatement;
import com.google.dart.compiler.ast.DartIdentifier;
import com.google.dart.compiler.ast.DartIfStatement;
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.DartStatement;
import com.google.dart.compiler.ast.DartTypeExpression;
import com.google.dart.compiler.ast.DartUnaryExpression;
@@ -41,9 +41,9 @@ import java.util.Set;
* Analysis begins at the identifier whose type is to be refined and walks up the AST, ending at the
* declaration of the element containing the identifier reference.
*/
-public class TypeRefiner extends DartNodeTraverser<Void> {
+public class TypeRefiner extends ASTVisitor<Void> {
- private static class AssignmentFinder extends DartNodeTraverser<Void> {
+ private static class AssignmentFinder extends ASTVisitor<Void> {
private DartExpression target;
private Set<DartNode> visitedNodes = new HashSet<DartNode>();
private int assignmentCount = 0;

Powered by Google App Engine
This is Rietveld 408576698