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

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: 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..b630911e2047a5aaf1a241313848ad4c192e529a 100644
--- a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
+++ b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
@@ -817,7 +817,7 @@ class ElementListener extends Listener {
bool allowLibraryTags() {
// Library tags are only allowed in the library file itself, not
// in sourced files.
- LibraryElement library = compilationUnitElement.library;
+ LibraryElement library = compilationUnitElement.implementationLibrary;
return !compilationUnitElement.hasMembers
&& library.entryCompilationUnit == compilationUnitElement;
floitsch 2014/06/23 19:12:33 indent by 4.
Johnni Winther 2014/06/24 08:11:20 Done.
}

Powered by Google App Engine
This is Rietveld 408576698