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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.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/resolver/CompileTimeConstantAnalyzer.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java b/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java
index 479387d697284e9bd7fee15e7aa2a17253830612..72c7113dc312dd5c1590a1f2ad1459d9afdb3b34 100644
--- a/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java
@@ -29,7 +29,7 @@ import com.google.dart.compiler.ast.DartMethodInvocation;
import com.google.dart.compiler.ast.DartNamedExpression;
import com.google.dart.compiler.ast.DartNewExpression;
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.DartParenthesizedExpression;
import com.google.dart.compiler.ast.DartPropertyAccess;
@@ -63,7 +63,7 @@ import java.util.Set;
*/
public class CompileTimeConstantAnalyzer {
- private class ExpressionVisitor extends DartNodeTraverser<Void> {
+ private class ExpressionVisitor extends ASTVisitor<Void> {
private ExpressionVisitor() {
}
@@ -514,7 +514,7 @@ public class CompileTimeConstantAnalyzer {
}
}
- private class FindCompileTimeConstantExpressionsVisitor extends DartNodeTraverser<Void> {
+ private class FindCompileTimeConstantExpressionsVisitor extends ASTVisitor<Void> {
@Override
public Void visitField(DartField node) {

Powered by Google App Engine
This is Rietveld 408576698