| Index: pkg/analysis_server/lib/src/resource.dart
|
| diff --git a/pkg/analysis_server/lib/src/resource.dart b/pkg/analysis_server/lib/src/resource.dart
|
| index 50fb4422a6d40d600844f26f870d642f75cf1c5a..8110ebf7042dbd1b82a52da06b2260c68dcbc322 100644
|
| --- a/pkg/analysis_server/lib/src/resource.dart
|
| +++ b/pkg/analysis_server/lib/src/resource.dart
|
| @@ -116,7 +116,10 @@ abstract class _MemoryResource implements Resource {
|
|
|
| @override
|
| bool operator ==(other) {
|
| - return identical(this, other);
|
| + if (runtimeType != other.runtimeType) {
|
| + return false;
|
| + }
|
| + return path == other.path;
|
| }
|
|
|
| @override
|
| @@ -496,7 +499,15 @@ abstract class _PhysicalResource implements Resource {
|
| String get path => _entry.absolute.path;
|
|
|
| @override
|
| - get hashCode => _entry.hashCode;
|
| + get hashCode => path.hashCode;
|
| +
|
| + @override
|
| + bool operator==(other) {
|
| + if (runtimeType != other.runtimeType) {
|
| + return false;
|
| + }
|
| + return path == other.path;
|
| + }
|
|
|
| @override
|
| String get shortName => basename(path);
|
|
|