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

Unified Diff: pkg/analysis_server/lib/src/services/search/search_engine.dart

Issue 1371463002: Record HAS_ANCESTOR relations into index. (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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/services/search/search_engine.dart
diff --git a/pkg/analysis_server/lib/src/services/search/search_engine.dart b/pkg/analysis_server/lib/src/services/search/search_engine.dart
index 60391ff688e33767e5cc7b8df36b91b6293da151..4e294bdc39d3371b7ee80e9b097cd15a2e44af58 100644
--- a/pkg/analysis_server/lib/src/services/search/search_engine.dart
+++ b/pkg/analysis_server/lib/src/services/search/search_engine.dart
@@ -68,6 +68,13 @@ class MatchKind {
*/
abstract class SearchEngine {
/**
+ * Returns all subtypes of the given [type].
+ *
+ * [type] - the [ClassElement] being subtyped by the found matches.
+ */
+ Future<List<SearchMatch>> searchAllSubtypes(ClassElement type);
+
+ /**
* Returns declarations of elements with the given name.
*
* [name] - the name being declared by the found matches.
@@ -97,7 +104,7 @@ abstract class SearchEngine {
Future<List<SearchMatch>> searchReferences(Element element);
/**
- * Returns subtypes of the given [type].
+ * Returns direct subtypes of the given [type].
*
* [type] - the [ClassElement] being subtyped by the found matches.
*/

Powered by Google App Engine
This is Rietveld 408576698