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

Unified Diff: pkg/analyzer_cli/lib/src/package_analyzer.dart

Issue 1722383002: Fix the 'Unused import' hint when using package summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « pkg/analyzer/test/generated/test_support.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/lib/src/package_analyzer.dart
diff --git a/pkg/analyzer_cli/lib/src/package_analyzer.dart b/pkg/analyzer_cli/lib/src/package_analyzer.dart
index b4563c3c047b2eeac81829a9dd99a4a021f39391..3373f6a08656bf16df161613f4d168071a2da20b 100644
--- a/pkg/analyzer_cli/lib/src/package_analyzer.dart
+++ b/pkg/analyzer_cli/lib/src/package_analyzer.dart
@@ -210,6 +210,9 @@ class InSummarySource extends Source {
String get fullName => encoding;
@override
+ int get hashCode => uri.hashCode;
+
+ @override
bool get isInSystemLibrary => false;
@override
@@ -222,6 +225,10 @@ class InSummarySource extends Source {
UriKind get uriKind => UriKind.PACKAGE_URI;
@override
+ bool operator ==(Object object) =>
+ object is InSummarySource && object.uri == uri;
+
+ @override
bool exists() => true;
@override
« no previous file with comments | « pkg/analyzer/test/generated/test_support.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698