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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/ParserRoundTripTest.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/parser/ParserRoundTripTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/ParserRoundTripTest.java b/compiler/javatests/com/google/dart/compiler/parser/ParserRoundTripTest.java
index f791fe17c9d7a1c04b0f2abc293fea1dff7ce112..88d1ba0b2e5d86835e1c6ac79c00a42368ebc56e 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/ParserRoundTripTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/ParserRoundTripTest.java
@@ -7,7 +7,6 @@ package com.google.dart.compiler.parser;
import com.google.dart.compiler.CompilerTestCase;
import com.google.dart.compiler.ast.DartToSourceVisitor;
import com.google.dart.compiler.ast.DartUnit;
-import com.google.dart.compiler.util.DefaultTextOutput;
/**
* Tests, for each of the parser test examples, that {@link DartToSourceVisitor} produces
@@ -69,10 +68,7 @@ public class ParserRoundTripTest extends CompilerTestCase {
*/
private void roundTrip(String path) {
DartUnit unit = parseUnit(path);
-
- DefaultTextOutput out = new DefaultTextOutput(false);
- new DartToSourceVisitor(out, false).accept(unit);
- String src = out.toString();
+ String src = unit.toSource();
parseUnit(path, src);
}
}

Powered by Google App Engine
This is Rietveld 408576698