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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/GetTypeHierarchyConsumer.java

Issue 542323003: Search domain implementation in the Remote java server, using generated types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nit merge issue fixed Created 6 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: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/GetTypeHierarchyConsumer.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/GetTypeHierarchyConsumer.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/GetTypeHierarchyConsumer.java
index 211466bf877615b0fe068a55a7f70114d521a541..708984238ccb99aabac24da1abe03c0ce32385ff 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/GetTypeHierarchyConsumer.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/GetTypeHierarchyConsumer.java
@@ -13,6 +13,10 @@
*/
package com.google.dart.server;
+import com.google.dart.server.generated.types.TypeHierarchyItem;
+
+import java.util.List;
+
/**
* The interface {@code TypeHierarchyConsumer} defines the behavior of objects that consume type
* hierarchy.
@@ -23,8 +27,12 @@ public interface GetTypeHierarchyConsumer extends Consumer {
/**
* Type hierarchy has been computed.
*
- * @param target the item corresponding to the {@link Element} the hierarchy was requested for,
- * {@code null} if no hierarchy exists for the given {@link Element}
+ * @param hierarchyItems A list of the types in the requested hierarchy. The first element of the
+ * list is the item representing the type for which the hierarchy was requested. The
+ * index of other elements of the list is unspecified, but correspond to the integers
+ * used to reference supertype and subtype items within the items. This field will be
+ * absent if the code at the given file and offset does not represent a type, or if the
+ * file has not been sufficiently analyzed to allow a type hierarchy to be produced.
*/
- public void computedHierarchy(TypeHierarchyItem target);
+ public void computedHierarchy(List<TypeHierarchyItem> hierarchyItems);
}

Powered by Google App Engine
This is Rietveld 408576698