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

Unified Diff: pkg/analyzer/lib/src/generated/source_io.dart

Issue 944493002: Change equality comparison for FileBasedSource to use URI. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reformat and sort code. Created 5 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 | « no previous file | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/source_io.dart
diff --git a/pkg/analyzer/lib/src/generated/source_io.dart b/pkg/analyzer/lib/src/generated/source_io.dart
index afc50ff5491a76c002cdb437a4ecc5130e40ac14..d615cf3093dbaa5f8bb9749abaf58c8aa9f2b759 100644
--- a/pkg/analyzer/lib/src/generated/source_io.dart
+++ b/pkg/analyzer/lib/src/generated/source_io.dart
@@ -197,7 +197,7 @@ class FileBasedSource extends Source {
@override
bool operator ==(Object object) =>
- object != null && object is FileBasedSource && file == object.file;
+ object != null && object is FileBasedSource && uri == object.uri;
scheglov 2015/02/19 18:54:47 The check object != null is not necessary, "is" wi
Paul Berry 2015/02/19 19:15:32 Fair enough. Fixed.
@override
bool exists() => file.isFile();
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698