Index: dart/sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart |
diff --git a/dart/sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart b/dart/sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart |
index 700d8a88de1f1dc3142187604c8f52ca51a87c35..7347573e22e7a69d4cd036641f13204968a57ab5 100644 |
--- a/dart/sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart |
+++ b/dart/sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart |
@@ -17,8 +17,8 @@ abstract class MirrorSystem { |
* Returns an iterable of all libraries in the mirror system whose library |
* name is [libraryName]. |
*/ |
- Iterable<LibraryMirror> findLibrary(String libraryName) { |
- return libraries.values.where( |
+ LibraryMirror findLibrary(String libraryName) { |
+ return libraries.values.singleWhere( |
(library) => library.simpleName == libraryName); |
} |