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

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

Issue 346963006: Index Dart/HTML units after analysis. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments Created 6 years, 6 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_server/lib/src/index/index.dart
diff --git a/pkg/analysis_server/lib/src/index/index.dart b/pkg/analysis_server/lib/src/index/index.dart
index 4cfb3617c9c84c58f0d424ea33e88ce7a172f338..023cfc9c2f4ea9d913be0110770e31a77c9b22d9 100644
--- a/pkg/analysis_server/lib/src/index/index.dart
+++ b/pkg/analysis_server/lib/src/index/index.dart
@@ -18,18 +18,23 @@ import 'package:analyzer/src/generated/index.dart';
import 'package:analyzer/src/generated/source.dart';
+Index createLocalFileSplitIndex(Directory directory) {
+ var fileManager = new SeparateFileManager(directory);
+ var stringCodec = new StringCodec();
+ var nodeManager = new FileNodeManager(fileManager,
+ AnalysisEngine.instance.logger, stringCodec, new ContextCodec(),
+ new ElementCodec(stringCodec), new RelationshipCodec(stringCodec));
+ return new LocalIndex(nodeManager);
+}
+
+
/**
- * An implementation of [Index] with [SplitIndexStore].
+ * A local implementation of [Index].
*/
-class LocalSplitIndex extends Index {
+class LocalIndex extends Index {
SplitIndexStore _store;
- LocalSplitIndex(Directory directory) {
- var fileManager = new SeparateFileManager(directory);
- var stringCodec = new StringCodec();
- var nodeManager = new FileNodeManager(fileManager,
- AnalysisEngine.instance.logger, stringCodec, new ContextCodec(),
- new ElementCodec(stringCodec), new RelationshipCodec(stringCodec));
+ LocalIndex(NodeManager nodeManager) {
_store = new SplitIndexStore(nodeManager);
}
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/lib/src/operation/operation_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698