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

Unified Diff: compiler/java/com/google/dart/compiler/ast/LibraryUnit.java

Issue 9149008: Fixes for parsing warnigs, issue 1060. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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/ast/LibraryUnit.java
diff --git a/compiler/java/com/google/dart/compiler/ast/LibraryUnit.java b/compiler/java/com/google/dart/compiler/ast/LibraryUnit.java
index 2832e5b03d65020a05923d41d7bc11ab3be30f36..0a18d76b65df4eb3ef6a263392fb6873f6542ca5 100644
--- a/compiler/java/com/google/dart/compiler/ast/LibraryUnit.java
+++ b/compiler/java/com/google/dart/compiler/ast/LibraryUnit.java
@@ -456,7 +456,7 @@ public class LibraryUnit {
};
DartScannerParserContext parserContext = new DartScannerParserContext(src, srcCode, listener);
- DartParser parser = new DartParser(parserContext);
+ DartParser parser = new DartParser(parserContext, true);
DartUnit unit = parser.parseUnit(src);
// When parsing from an API file, generate and store the hash for top level
@@ -470,7 +470,6 @@ public class LibraryUnit {
((DartClass)node).setHash(nodeString.hashCode());
}
}
- unit.setDiet(true);
putUnit(unit);
}
}

Powered by Google App Engine
This is Rietveld 408576698