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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/services/index/local_index.dart
diff --git a/pkg/analysis_server/lib/src/services/index/local_index.dart b/pkg/analysis_server/lib/src/services/index/local_index.dart
index 68a50322d24f92eaa2df403bcd61cb67ddc05bcf..a99f612042e24771f803e8522d8248a074629d28 100644
--- a/pkg/analysis_server/lib/src/services/index/local_index.dart
+++ b/pkg/analysis_server/lib/src/services/index/local_index.dart
@@ -58,6 +58,11 @@ class LocalIndex extends Index {
}
@override
+ List<Element> getTopDeclarations(ElementNameFilter nameFilter) {
+ return _store.getTopDeclarations(nameFilter);
+ }
+
+ @override
void indexHtmlUnit(AnalysisContext context, HtmlUnit unit) {
contributors.indexHtmlUnit(_store, context, unit);
}

Powered by Google App Engine
This is Rietveld 408576698