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

Unified Diff: sdk/lib/_internal/compiler/implementation/scanner/listener.dart

Issue 350693007: Load patches via callback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix caching_compiler Created 6 years, 6 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: sdk/lib/_internal/compiler/implementation/scanner/listener.dart
diff --git a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
index 3e4be25ecf12ecfcf78d3faaa50d8050cf8aac6d..7a19ce71b06c74dfd712ec88712145a7c1f1fbb7 100644
--- a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
+++ b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
@@ -817,9 +817,9 @@ class ElementListener extends Listener {
bool allowLibraryTags() {
// Library tags are only allowed in the library file itself, not
// in sourced files.
- LibraryElement library = compilationUnitElement.library;
- return !compilationUnitElement.hasMembers
- && library.entryCompilationUnit == compilationUnitElement;
+ LibraryElement library = compilationUnitElement.implementationLibrary;
+ return !compilationUnitElement.hasMembers &&
+ library.entryCompilationUnit == compilationUnitElement;
}
void endLibraryName(Token libraryKeyword, Token semicolon) {

Powered by Google App Engine
This is Rietveld 408576698