| 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 558cbc30eb2001fe93c09d94d0e0a29c170a6e2e..1845e63c092f37c4a369367f5bef011d3c0c03ec 100644
|
| --- a/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| +++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| @@ -690,9 +690,7 @@ public class DartCompiler {
|
| // Compile all the units in this library.
|
| for (DartUnit unit : lib.getUnits()) {
|
|
|
| - if(astWriter != null) {
|
| - astWriter.process(unit);
|
| - }
|
| + astWriter.process(unit);
|
|
|
| // Don't compile api-only units.
|
| if (unit.isDiet()) {
|
| @@ -837,6 +835,8 @@ 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);
|
| return null;
|
| }
|
| return unit;
|
|
|