OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library services.src.index.local_index; | 5 library services.src.index.local_index; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/analysis/index/index_core.dart'; | 9 import 'package:analysis_server/analysis/index/index_core.dart'; |
10 import 'package:analysis_server/src/services/index/index.dart'; | 10 import 'package:analysis_server/src/services/index/index.dart'; |
(...skipping 11 matching lines...) Expand all Loading... |
22 */ | 22 */ |
23 class LocalIndex extends Index { | 23 class LocalIndex extends Index { |
24 /** | 24 /** |
25 * The index contributors used by this index. | 25 * The index contributors used by this index. |
26 */ | 26 */ |
27 List<IndexContributor> contributors; | 27 List<IndexContributor> contributors; |
28 | 28 |
29 SplitIndexStore _store; | 29 SplitIndexStore _store; |
30 | 30 |
31 LocalIndex(NodeManager nodeManager) { | 31 LocalIndex(NodeManager nodeManager) { |
32 _store = new SplitIndexStore(nodeManager); | 32 // TODO(scheglov) get IndexObjectManager(s) as a parameter |
| 33 _store = new SplitIndexStore(nodeManager, |
| 34 <IndexObjectManager>[new DartUnitIndexObjectManager()]); |
33 } | 35 } |
34 | 36 |
35 @override | 37 @override |
36 String get statistics => _store.statistics; | 38 String get statistics => _store.statistics; |
37 | 39 |
38 @override | 40 @override |
39 void clear() { | 41 void clear() { |
40 _store.clear(); | 42 _store.clear(); |
41 } | 43 } |
42 | 44 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 @override | 103 @override |
102 void run() { | 104 void run() { |
103 // NO-OP for the local index | 105 // NO-OP for the local index |
104 } | 106 } |
105 | 107 |
106 @override | 108 @override |
107 void stop() { | 109 void stop() { |
108 // NO-OP for the local index | 110 // NO-OP for the local index |
109 } | 111 } |
110 } | 112 } |
OLD | NEW |