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

Unified Diff: sdk/lib/mirrors/mirrors.dart

Issue 2564383002: Make some VM libraries patch cleanly using the analyzer. (Closed)
Patch Set: Created 4 years 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/mirrors/mirrors.dart
diff --git a/sdk/lib/mirrors/mirrors.dart b/sdk/lib/mirrors/mirrors.dart
index 206410a7ec042cea7d8c89665c90085f8c600c44..3aa88f4c24bcc0295518ac724b0471ea03ed58b5 100644
--- a/sdk/lib/mirrors/mirrors.dart
+++ b/sdk/lib/mirrors/mirrors.dart
@@ -87,10 +87,7 @@ abstract class MirrorSystem {
*
* If no unique library exists, an error is thrown.
*/
- LibraryMirror findLibrary(Symbol libraryName) {
Siggi Cherem (dart-lang) 2016/12/15 00:31:46 I was thinking whether there will be much of an im
- return libraries.values.singleWhere(
- (library) => library.simpleName == libraryName);
- }
+ external LibraryMirror findLibrary(Symbol libraryName);
/**
* A mirror on the isolate associated with this [MirrorSystem].

Powered by Google App Engine
This is Rietveld 408576698