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

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

Issue 894853004: Support for inspecting index. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 c95a0bef363b7e821c4692a88e013b926e4c929d..68a50322d24f92eaa2df403bcd61cb67ddc05bcf 100644
--- a/pkg/analysis_server/lib/src/services/index/local_index.dart
+++ b/pkg/analysis_server/lib/src/services/index/local_index.dart
@@ -36,6 +36,14 @@ class LocalIndex extends Index {
}
/**
+ * Returns all relations with [Element]s with the given [name].
+ */
+ Future<Map<List<String>, List<InspectLocation>>>
+ findElementsByName(String name) {
+ return _store.inspect_getElementRelations(name);
+ }
+
+ /**
* Returns a `Future<List<Location>>` that completes with the list of
* [Location]s of the given [relationship] with the given [element].
*

Powered by Google App Engine
This is Rietveld 408576698