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

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

Issue 2995683002: Initial experimental Kythe Dart Analysis Server protocol (Closed)
Patch Set: rebase Created 3 years, 4 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/support/integration_test_methods.dart
diff --git a/pkg/analysis_server/test/integration/support/integration_test_methods.dart b/pkg/analysis_server/test/integration/support/integration_test_methods.dart
index 93cb1d4abb217159ebec85ce7184bb5a7c6c2f5b..a566054e606236d620cac88c72f5e533ec96aa7d 100644
--- a/pkg/analysis_server/test/integration/support/integration_test_methods.dart
+++ b/pkg/analysis_server/test/integration/support/integration_test_methods.dart
@@ -2036,6 +2036,38 @@ abstract class IntegrationTestMixin {
return null;
}
+ /**
+ * Return the list of KytheEntry objects for some file, given the current
+ * state of the file system populated by "analysis.updateContent".
+ *
+ * Parameters
+ *
+ * file: FilePath
+ *
+ * The file containing the code for which the Kythe Entry objects are being
+ * requested.
+ *
+ * Returns
+ *
+ * entries: List<KytheEntry>
+ *
+ * The list of KytheEntry objects for the queried file.
+ *
+ * files: List<FilePath>
+ *
+ * The set of files paths that were required, but not in the file system,
+ * to give a complete and accurate Kythe graph for the file. This could be
+ * due to a referenced file that does not exist or generated files not
+ * being generated or passed before the call to "getKytheEntries".
+ */
+ Future<KytheGetKytheEntriesResult> sendKytheGetKytheEntries(
+ String file) async {
+ var params = new KytheGetKytheEntriesParams(file).toJson();
+ var result = await server.send("kythe.getKytheEntries", params);
+ ResponseDecoder decoder = new ResponseDecoder(null);
+ return new KytheGetKytheEntriesResult.fromJson(decoder, 'result', result);
+ }
+
/**
* Initialize the fields in InttestMixin, and ensure that notifications will
* be handled.

Powered by Google App Engine
This is Rietveld 408576698