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

Unified Diff: pkg/analysis_server/lib/src/resource.dart

Issue 300023004: Partial implementation of the 'setAnalysisRoots' API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 6 years, 7 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/analysis_server/lib/src/protocol.dart ('k') | pkg/analysis_server/lib/src/socket_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2db8d615b1152d1cafda3c36bed5ea685c1d84f2..e3cba4547442dbbad73241f4252f4ad4e2c69dfc 100644
--- a/pkg/analysis_server/lib/src/resource.dart
+++ b/pkg/analysis_server/lib/src/resource.dart
@@ -158,6 +158,14 @@ class _MemoryFileSource implements Source {
_MemoryFileSource(this._file, this.uriKind);
@override
+ bool operator ==(other) {
+ if (other is _MemoryFileSource) {
+ return other._file == _file;
+ }
+ return false;
+ }
+
+ @override
TimestampedData<String> get contents {
return new TimestampedData<String>(modificationStamp, _file._content);
}
@@ -174,6 +182,9 @@ class _MemoryFileSource implements Source {
String get fullName => _file.fullName;
@override
+ int get hashCode => _file.hashCode;
+
+ @override
bool get isInSystemLibrary => false;
@override
« no previous file with comments | « pkg/analysis_server/lib/src/protocol.dart ('k') | pkg/analysis_server/lib/src/socket_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698