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.index_store; | 5 library services.index_store; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/src/services/index/index.dart'; | 9 import 'package:analysis_server/src/services/index/index.dart'; |
10 import 'package:analyzer/src/generated/element.dart'; | 10 import 'package:analyzer/src/generated/element.dart'; |
11 import 'package:analyzer/src/generated/engine.dart'; | 11 import 'package:analyzer/src/generated/engine.dart'; |
12 import 'package:analyzer/src/generated/source.dart'; | 12 import 'package:analyzer/src/generated/source.dart'; |
13 | 13 |
14 /** | 14 /** |
15 * A container with information computed by an index - relations between | 15 * A container with information computed by an index - relations between |
16 * elements. | 16 * elements. |
17 */ | 17 */ |
18 abstract class IndexStore { | 18 abstract class InternalIndexStore { |
19 /** | 19 /** |
20 * Answers index statistics. | 20 * Answers index statistics. |
21 */ | 21 */ |
22 String get statistics; | 22 String get statistics; |
23 | 23 |
24 /** | 24 /** |
25 * Notifies the index store that we are going to index an unit with the given | 25 * Notifies the index store that we are going to index an unit with the given |
26 * [unitElement]. | 26 * [unitElement]. |
27 * | 27 * |
28 * If the unit is a part of a library, then all its locations are removed. | 28 * If the unit is a part of a library, then all its locations are removed. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 * any other elements and a location within the given sources. | 148 * any other elements and a location within the given sources. |
149 * | 149 * |
150 * This method should be invoked when multiple sources are no longer part of | 150 * This method should be invoked when multiple sources are no longer part of |
151 * the code base. | 151 * the code base. |
152 * | 152 * |
153 * [context] - the [AnalysisContext] in which [Source]s being removed. | 153 * [context] - the [AnalysisContext] in which [Source]s being removed. |
154 * [container] - the [SourceContainer] holding the sources being removed. | 154 * [container] - the [SourceContainer] holding the sources being removed. |
155 */ | 155 */ |
156 void removeSources(AnalysisContext context, SourceContainer container); | 156 void removeSources(AnalysisContext context, SourceContainer container); |
157 } | 157 } |
OLD | NEW |