| Index: pkg/analyzer/lib/file_system/memory_file_system.dart
|
| diff --git a/pkg/analyzer/lib/file_system/memory_file_system.dart b/pkg/analyzer/lib/file_system/memory_file_system.dart
|
| index 3ec640e9a5b1bfa6e0a561ff489e92374f6aaf04..143e7191e80bcfc0b365e7dc27647f42f4be94f8 100644
|
| --- a/pkg/analyzer/lib/file_system/memory_file_system.dart
|
| +++ b/pkg/analyzer/lib/file_system/memory_file_system.dart
|
| @@ -449,7 +449,12 @@ class _MemoryFileSource extends Source {
|
|
|
| @override
|
| bool operator ==(other) {
|
| - return other is _MemoryFileSource && other.id == id;
|
| + if (other is _MemoryFileSource) {
|
| + return id == other.id;
|
| + } else if (other is Source) {
|
| + return uri == other.uri;
|
| + }
|
| + return false;
|
| }
|
|
|
| @override
|
|
|