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

Unified Diff: compiler/javatests/com/google/dart/compiler/CompilerTestCase.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/javatests/com/google/dart/compiler/CompilerTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
index 2affb905cfa35a580383bd5e3e0d00d633f45d1f..4b89a1e321eb1b32ec774f40a948001dd573dcf8 100644
--- a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
@@ -13,7 +13,7 @@ import com.google.dart.compiler.ast.DartFunctionTypeAlias;
import com.google.dart.compiler.ast.DartInvocation;
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.DartUnit;
import com.google.dart.compiler.ast.LibraryUnit;
import com.google.dart.compiler.common.ErrorExpectation;
@@ -332,7 +332,7 @@ public abstract class CompilerTestCase extends TestCase {
*/
protected static DartNewExpression findNewExpression(DartNode rootNode, final String sampleSource) {
final DartNewExpression result[] = new DartNewExpression[1];
- rootNode.accept(new DartNodeTraverser<Void>() {
+ rootNode.accept(new ASTVisitor<Void>() {
@Override
public Void visitNewExpression(DartNewExpression node) {
if (node.toSource().equals(sampleSource)) {
@@ -346,7 +346,7 @@ public abstract class CompilerTestCase extends TestCase {
protected static DartFunctionTypeAlias findTypedef(DartNode rootNode, final String name) {
final DartFunctionTypeAlias result[] = new DartFunctionTypeAlias[1];
- rootNode.accept(new DartNodeTraverser<Void>() {
+ rootNode.accept(new ASTVisitor<Void>() {
@Override
public Void visitFunctionTypeAlias(DartFunctionTypeAlias node) {
if (node.getName().getTargetName().equals(name)) {

Powered by Google App Engine
This is Rietveld 408576698