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

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

Issue 2994103002: Add kythe support to plugins and format the spec files (Closed)
Patch Set: 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/analyzer_plugin/test/integration/support/integration_test_methods.dart
diff --git a/pkg/analyzer_plugin/test/integration/support/integration_test_methods.dart b/pkg/analyzer_plugin/test/integration/support/integration_test_methods.dart
index 30f3c2d85bd24564797b77005db0dc0dc48333f6..58bf8dd8cba1a00c74decc3fd64e6f87c7281be3 100644
--- a/pkg/analyzer_plugin/test/integration/support/integration_test_methods.dart
+++ b/pkg/analyzer_plugin/test/integration/support/integration_test_methods.dart
@@ -708,6 +708,38 @@ abstract class IntegrationTestMixin {
}
/**
+ * 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