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

Unified Diff: pkg/analyzer_plugin/test/integration/support/protocol_matchers.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/protocol_matchers.dart
diff --git a/pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart b/pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart
index 7bc0fc19e7677445283aa74c4e8c76878c927af6..dbb2e4509c1fda817c3d51ae02633bede49db71f 100644
--- a/pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart
+++ b/pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart
@@ -506,6 +506,46 @@ final Matcher isHighlightRegionType = new MatchesEnum("HighlightRegionType", [
]);
/**
+ * 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
*
* {
@@ -1347,6 +1387,29 @@ final Matcher isInlineMethodOptions = new LazyMatcher(() =>
"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
*/
final Matcher isMoveFileFeedback = isNull;

Powered by Google App Engine
This is Rietveld 408576698