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

Unified Diff: pkg/analysis_server/test/integration/integration_test_methods.dart

Issue 1325543006: Add the optional 'superOnly' request parameter for 'search.getTypeHierarchy'. (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/test/integration/integration_test_methods.dart
diff --git a/pkg/analysis_server/test/integration/integration_test_methods.dart b/pkg/analysis_server/test/integration/integration_test_methods.dart
index 8f3915eb4976b216a25bb9117b5b460c68ee6af1..f6aa68d4a8981044b6745f1f76b69ea5771817a5 100644
--- a/pkg/analysis_server/test/integration/integration_test_methods.dart
+++ b/pkg/analysis_server/test/integration/integration_test_methods.dart
@@ -1062,6 +1062,11 @@ abstract class IntegrationTestMixin {
*
* The offset of the name of the type within the file.
*
+ * superOnly ( optional bool )
+ *
+ * True if the client is only requesting superclasses and interfaces
+ * hierarchy.
+ *
* Returns
*
* hierarchyItems ( optional List<TypeHierarchyItem> )
@@ -1076,8 +1081,8 @@ abstract class IntegrationTestMixin {
* not represent a type, or if the file has not been sufficiently analyzed
* to allow a type hierarchy to be produced.
*/
- Future<SearchGetTypeHierarchyResult> sendSearchGetTypeHierarchy(String file, int offset) {
- var params = new SearchGetTypeHierarchyParams(file, offset).toJson();
+ Future<SearchGetTypeHierarchyResult> sendSearchGetTypeHierarchy(String file, int offset, {bool superOnly}) {
+ var params = new SearchGetTypeHierarchyParams(file, offset, superOnly: superOnly).toJson();
return server.send("search.getTypeHierarchy", params)
.then((result) {
ResponseDecoder decoder = new ResponseDecoder(null);
« no previous file with comments | « pkg/analysis_server/lib/src/generated_protocol.dart ('k') | pkg/analysis_server/test/integration/protocol_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698