| OLD | NEW |
| (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 } |
| OLD | NEW |