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

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

Issue 8913016: Issue 839: Bad code leading to top level methods being something other than identifier (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Nits Created 9 years 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
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/ast/LibraryUnit.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/ast/LibraryUnit.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698