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

Side by Side Diff: pkg/analysis_server/lib/src/services/index/index_store.dart

Issue 1359113002: Use IndexContributor(s) in LocalIndex. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
OLDNEW
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 'package:analysis_server/analysis/index/index_core.dart'; 7 import 'package:analysis_server/analysis/index_core.dart';
8 import 'package:analysis_server/src/services/index/index.dart'; 8 import 'package:analysis_server/src/services/index/index.dart';
9 import 'package:analyzer/src/generated/element.dart'; 9 import 'package:analyzer/src/generated/element.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
11 11
12 /** 12 /**
13 * A container with information computed by an index - relations between 13 * A container with information computed by an index - relations between
14 * elements. 14 * elements.
15 */ 15 */
16 abstract class InternalIndexStore extends IndexStore { 16 abstract class InternalIndexStore extends IndexStore {
17 /** 17 /**
18 * Answers index statistics. 18 * Answers index statistics.
19 */ 19 */
20 String get statistics; 20 String get statistics;
21 21
22 /** 22 /**
23 * Notifies the index store that we are going to index the given [object]. 23 * Notifies the index store that we are going to index the given [object].
24 * 24 *
25 * [context] - the [AnalysisContext] in which unit being indexed. 25 * [context] - the [AnalysisContext] in which the [object] being indexed.
26 * [object] - the object being indexed. 26 * [object] - the object being indexed.
27 * 27 *
28 * Returns `true` if the given [object] may be indexed, or `false` if 28 * Returns `true` if the given [object] may be indexed, or `false` if
29 * belongs to a disposed [AnalysisContext], is not resolved completely, etc. 29 * belongs to a disposed [AnalysisContext], is not resolved completely, etc.
30 */ 30 */
31 bool aboutToIndex(AnalysisContext context, Object object); 31 bool aboutToIndex(AnalysisContext context, Object object);
32 32
33 /** 33 /**
34 * Notifies the index store that there was an error during the current 34 * Notifies the index store that there was an error during the current
35 * indexing, and all the information recorded after the last 35 * indexing, and all the information recorded after the last
(...skipping 12 matching lines...) Expand all
48 /** 48 /**
49 * Returns top-level [Element]s whose names satisfy to [nameFilter]. 49 * Returns top-level [Element]s whose names satisfy to [nameFilter].
50 */ 50 */
51 List<Element> getTopLevelDeclarations(ElementNameFilter nameFilter); 51 List<Element> getTopLevelDeclarations(ElementNameFilter nameFilter);
52 52
53 /** 53 /**
54 * Records the declaration of the given top-level [element]. 54 * Records the declaration of the given top-level [element].
55 */ 55 */
56 void recordTopLevelDeclaration(Element element); 56 void recordTopLevelDeclaration(Element element);
57 } 57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698