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

Side by Side Diff: pkg/analysis_services/lib/index/local_file_index.dart

Issue 375693002: Move index/search to services. (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 library engine.index.local_file_index;
6
7 import 'dart:io';
8
9 import 'package:analysis_services/index/index.dart';
10 import 'package:analysis_services/src/index/local_index.dart';
11 import 'package:analysis_services/src/index/store/codec.dart';
12 import 'package:analysis_services/src/index/store/separate_file_manager.dart';
13 import 'package:analysis_services/src/index/store/split_store.dart';
14 import 'package:analyzer/src/generated/engine.dart';
15
16
17 Index createLocalFileIndex(Directory directory) {
18 var fileManager = new SeparateFileManager(directory);
19 var stringCodec = new StringCodec();
20 var nodeManager = new FileNodeManager(fileManager,
21 AnalysisEngine.instance.logger, stringCodec, new ContextCodec(),
22 new ElementCodec(stringCodec), new RelationshipCodec(stringCodec));
23 return new LocalIndex(nodeManager);
24 }
OLDNEW
« no previous file with comments | « pkg/analysis_services/lib/index/index_store.dart ('k') | pkg/analysis_services/lib/index/local_memory_index.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698