Chromium Code Reviews| 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.
|
| } |