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

Unified Diff: pkg/analysis_server/lib/src/services/index/index_store.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/index_store.dart
diff --git a/pkg/analysis_server/lib/src/services/index/index_store.dart b/pkg/analysis_server/lib/src/services/index/index_store.dart
index a3f1950f5943e8f4cfd9911e3fb180160e17b8f1..4a3ef9135cdfd88704822ce392bcec1bcf787cc4 100644
--- a/pkg/analysis_server/lib/src/services/index/index_store.dart
+++ b/pkg/analysis_server/lib/src/services/index/index_store.dart
@@ -84,6 +84,11 @@ abstract class IndexStore {
Relationship relationship);
/**
+ * Returns top-level [Element]s whose names satisfy to [nameFilter].
+ */
+ List<Element> getTopDeclarations(ElementNameFilter nameFilter);
Brian Wilkerson 2015/03/02 19:20:07 "Top" --> "TopLevel"? I know it's longer, but I th
scheglov 2015/03/02 19:55:46 Done.
+
+ /**
* Records that the given [element] and [location] have the given
* [relationship].
*
@@ -110,6 +115,11 @@ abstract class IndexStore {
Location location);
/**
+ * Records the declaration of the given top-level [element].
+ */
+ void recordTopDeclaration(Element element);
+
+ /**
* Removes from the index all of the information associated with [context].
*
* This method should be invoked when [context] is disposed.

Powered by Google App Engine
This is Rietveld 408576698