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

Unified Diff: pkg/analysis_server/lib/src/services/index/store/split_store.dart

Issue 703963002: Use Element's source paths instead of URIs as a key in the index. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
Index: pkg/analysis_server/lib/src/services/index/store/split_store.dart
diff --git a/pkg/analysis_server/lib/src/services/index/store/split_store.dart b/pkg/analysis_server/lib/src/services/index/store/split_store.dart
index 6f2e1906f8c78fa77229ba87904ff33cde51ae89..b0b316963724be7697ea016b0ef96d125f32af6a 100644
--- a/pkg/analysis_server/lib/src/services/index/store/split_store.dart
+++ b/pkg/analysis_server/lib/src/services/index/store/split_store.dart
@@ -320,7 +320,7 @@ class LocationData {
LocationData.forData(this.elementId, this.offset, this.length, this.flags);
LocationData.forObject(ElementCodec elementCodec, Location location)
- : elementId = elementCodec.encode(location.element),
+ : elementId = elementCodec.encode(location.element, false),
offset = location.offset,
length = location.length,
flags = (location.isQualified ? _FLAG_QUALIFIED : 0) |
@@ -425,7 +425,7 @@ class RelationKeyData {
RelationKeyData.forObject(ElementCodec elementCodec,
RelationshipCodec relationshipCodec, Element element, Relationship relationship)
- : elementId = elementCodec.encode(element),
+ : elementId = elementCodec.encode(element, true),
relationshipId = relationshipCodec.encode(relationship);
@override

Powered by Google App Engine
This is Rietveld 408576698