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

Unified Diff: pkg/analysis_server/test/integration/support/protocol_matchers.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/protocol_matchers.dart
diff --git a/pkg/analysis_server/test/integration/support/protocol_matchers.dart b/pkg/analysis_server/test/integration/support/protocol_matchers.dart
index 4d455590cab5f422b4f9d6e323625e09c0db5235..902a6a58e371ed2425aa1be90335d0525c96068b 100644
--- a/pkg/analysis_server/test/integration/support/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/support/protocol_matchers.dart
@@ -711,6 +711,46 @@ final Matcher isImportedElements = new LazyMatcher(() => new MatchesJsonObject(
"ImportedElements",
{"path": isFilePath, "prefix": isString, "elements": isListOf(isString)}));
+/**
+ * KytheEntry
+ *
+ * {
+ * "source": KytheVName
+ * "kind": String
+ * "target": KytheVName
+ * "fact": String
+ * "value": List<int>
+ * }
+ */
+final Matcher isKytheEntry =
+ new LazyMatcher(() => new MatchesJsonObject("KytheEntry", {
+ "source": isKytheVName,
+ "kind": isString,
+ "target": isKytheVName,
+ "fact": isString,
+ "value": isListOf(isInt)
+ }));
+
+/**
+ * KytheVName
+ *
+ * {
+ * "signature": String
+ * "corpus": String
+ * "root": String
+ * "path": String
+ * "language": String
+ * }
+ */
+final Matcher isKytheVName =
+ new LazyMatcher(() => new MatchesJsonObject("KytheVName", {
+ "signature": isString,
+ "corpus": isString,
+ "root": isString,
+ "path": isString,
+ "language": isString
+ }));
+
/**
* LinkedEditGroup
*
@@ -2318,6 +2358,29 @@ final Matcher isInlineMethodOptions = new LazyMatcher(() =>
new MatchesJsonObject(
"inlineMethod options", {"deleteSource": isBool, "inlineAll": isBool}));
+/**
+ * kythe.getKytheEntries params
+ *
+ * {
+ * "file": FilePath
+ * }
+ */
+final Matcher isKytheGetKytheEntriesParams = new LazyMatcher(() =>
+ new MatchesJsonObject(
+ "kythe.getKytheEntries params", {"file": isFilePath}));
+
+/**
+ * kythe.getKytheEntries result
+ *
+ * {
+ * "entries": List<KytheEntry>
+ * "files": List<FilePath>
+ * }
+ */
+final Matcher isKytheGetKytheEntriesResult = new LazyMatcher(() =>
+ new MatchesJsonObject("kythe.getKytheEntries result",
+ {"entries": isListOf(isKytheEntry), "files": isListOf(isFilePath)}));
+
/**
* moveFile feedback
*/

Powered by Google App Engine
This is Rietveld 408576698