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

Unified Diff: pkg/analysis_services/lib/src/index/store/codec.dart

Issue 382993002: SearchEngine service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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
Index: pkg/analysis_services/lib/src/index/store/codec.dart
diff --git a/pkg/analysis_services/lib/src/index/store/codec.dart b/pkg/analysis_services/lib/src/index/store/codec.dart
index 9153e6988f00d814d2231c0b4f692081dd01537d..108f93672ee5deeabab0eef3cc892a964d60a9c8 100644
--- a/pkg/analysis_services/lib/src/index/store/codec.dart
+++ b/pkg/analysis_services/lib/src/index/store/codec.dart
@@ -19,14 +19,14 @@ class ContextCodec {
/**
* A table mapping contexts to their unique indices.
*/
- Map<AnalysisContext, int> _contextToIndex = new HashMap<AnalysisContext, int>(
- );
+ Map<AnalysisContext, int> _contextToIndex =
+ new HashMap<AnalysisContext, int>();
/**
* A table mapping indices to the corresponding contexts.
*/
- Map<int, AnalysisContext> _indexToContext = new HashMap<int, AnalysisContext>(
- );
+ Map<int, AnalysisContext> _indexToContext =
+ new HashMap<int, AnalysisContext>();
/**
* The next id to assign.
@@ -92,7 +92,8 @@ class ElementCodec {
List<int> path = _indexToPath[index];
List<String> components = _getLocationComponents(path);
ElementLocation location = new ElementLocationImpl.con3(components);
- return context.getElement(location);
+ Element element = context.getElement(location);
+ return element;
}
/**
« no previous file with comments | « pkg/analysis_services/lib/src/index/index_contributor.dart ('k') | pkg/analysis_services/lib/src/search/search_engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698