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

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

Issue 971833003: Optimize top-level element declarations search. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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
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/src/services/index/index.dart'; 9 import 'package:analysis_server/src/services/index/index.dart';
10 import 'package:analysis_server/src/services/index/index_contributor.dart' as 10 import 'package:analysis_server/src/services/index/index_contributor.dart' as
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 * is the `is-invoked-by` relationship, then the locations will be all of the 51 * is the `is-invoked-by` relationship, then the locations will be all of the
52 * places where the function is invoked. 52 * places where the function is invoked.
53 */ 53 */
54 @override 54 @override
55 Future<List<Location>> getRelationships(Element element, 55 Future<List<Location>> getRelationships(Element element,
56 Relationship relationship) { 56 Relationship relationship) {
57 return _store.getRelationships(element, relationship); 57 return _store.getRelationships(element, relationship);
58 } 58 }
59 59
60 @override 60 @override
61 List<Element> getTopDeclarations(ElementNameFilter nameFilter) {
62 return _store.getTopDeclarations(nameFilter);
63 }
64
65 @override
61 void indexHtmlUnit(AnalysisContext context, HtmlUnit unit) { 66 void indexHtmlUnit(AnalysisContext context, HtmlUnit unit) {
62 contributors.indexHtmlUnit(_store, context, unit); 67 contributors.indexHtmlUnit(_store, context, unit);
63 } 68 }
64 69
65 @override 70 @override
66 void indexUnit(AnalysisContext context, CompilationUnit unit) { 71 void indexUnit(AnalysisContext context, CompilationUnit unit) {
67 contributors.indexDartUnit(_store, context, unit); 72 contributors.indexDartUnit(_store, context, unit);
68 } 73 }
69 74
70 @override 75 @override
(...skipping 14 matching lines...) Expand all
85 @override 90 @override
86 void run() { 91 void run() {
87 // NO-OP for the local index 92 // NO-OP for the local index
88 } 93 }
89 94
90 @override 95 @override
91 void stop() { 96 void stop() {
92 // NO-OP for the local index 97 // NO-OP for the local index
93 } 98 }
94 } 99 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698