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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompiler.java

Issue 9692006: Remove AST dumps, useless for Editor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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/DartCompiler.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java
index facb0d1151c69ef3919f3fc9f746cc09667219b6..ec1fb97e3d7b3243f1d260a841f072d3e1e3e8c3 100644
--- a/compiler/java/com/google/dart/compiler/DartCompiler.java
+++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
@@ -19,8 +19,6 @@ import com.google.dart.compiler.ast.DartUnit;
import com.google.dart.compiler.ast.LibraryNode;
import com.google.dart.compiler.ast.LibraryUnit;
import com.google.dart.compiler.ast.Modifiers;
-import com.google.dart.compiler.ast.viz.ASTWriterFactory;
-import com.google.dart.compiler.ast.viz.BaseASTWriter;
import com.google.dart.compiler.common.SourceInfo;
import com.google.dart.compiler.metrics.CompilerMetrics;
import com.google.dart.compiler.metrics.DartEventType;
@@ -725,9 +723,6 @@ public class DartCompiler {
// Set entry point
setEntryPoint();
- // Dump the compiler parse tree if dump format is set in arguments
- BaseASTWriter astWriter = ASTWriterFactory.create(config);
-
// The two following for loops can be parallelized.
for (LibraryUnit lib : getLibrariesToProcess()) {
boolean persist = false;
@@ -735,8 +730,6 @@ public class DartCompiler {
// Compile all the units in this library.
for (DartUnit unit : lib.getUnits()) {
- astWriter.process(unit);
-
// Don't compile diet units.
if (unit.isDiet()) {
continue;
@@ -818,8 +811,6 @@ public class DartCompiler {
}
if (!config.resolveDespiteParseErrors() && context.getErrorCount() > 0) {
- // Dump the compiler parse tree if dump format is set in arguments
- ASTWriterFactory.create(config).process(unit);
// We don't return this unit, so no more processing expected for it.
context.unitCompiled(unit);
return null;

Powered by Google App Engine
This is Rietveld 408576698