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

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

Issue 1372623004: New analysis.implemented notification specification. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Simplify to just list of classes/members that have implementations. 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/protocol_matchers.dart
diff --git a/pkg/analysis_server/test/integration/protocol_matchers.dart b/pkg/analysis_server/test/integration/protocol_matchers.dart
index dfef91e16d1fd8df7998d9c0f76556dacedfc009..4d2bc54e0cef3a4281d8c21f5e4b40cb1c2823b9 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -398,6 +398,22 @@ final Matcher isAnalysisHighlightsParams = new LazyMatcher(() => new MatchesJson
}));
/**
+ * analysis.implemented params
+ *
+ * {
+ * "file": FilePath
+ * "classes": List<ImplementedClass>
+ * "members": List<ImplementedMember>
+ * }
+ */
+final Matcher isAnalysisImplementedParams = new LazyMatcher(() => new MatchesJsonObject(
+ "analysis.implemented params", {
+ "file": isFilePath,
+ "classes": isListOf(isImplementedClass),
+ "members": isListOf(isImplementedMember)
+ }));
+
+/**
* analysis.invalidate params
*
* {
@@ -1106,6 +1122,7 @@ final Matcher isAnalysisOptions = new LazyMatcher(() => new MatchesJsonObject(
* enum {
* FOLDING
* HIGHLIGHTS
+ * IMPLEMENTED
* INVALIDATE
* NAVIGATION
* OCCURRENCES
@@ -1116,6 +1133,7 @@ final Matcher isAnalysisOptions = new LazyMatcher(() => new MatchesJsonObject(
final Matcher isAnalysisService = new MatchesEnum("AnalysisService", [
"FOLDING",
"HIGHLIGHTS",
+ "IMPLEMENTED",
"INVALIDATE",
"NAVIGATION",
"OCCURRENCES",
@@ -1618,6 +1636,34 @@ final Matcher isHoverInformation = new LazyMatcher(() => new MatchesJsonObject(
}));
/**
+ * ImplementedClass
+ *
+ * {
+ * "offset": int
+ * "length": int
+ * }
+ */
+final Matcher isImplementedClass = new LazyMatcher(() => new MatchesJsonObject(
+ "ImplementedClass", {
+ "offset": isInt,
+ "length": isInt
+ }));
+
+/**
+ * ImplementedMember
+ *
+ * {
+ * "offset": int
+ * "length": int
+ * }
+ */
+final Matcher isImplementedMember = new LazyMatcher(() => new MatchesJsonObject(
+ "ImplementedMember", {
+ "offset": isInt,
+ "length": isInt
+ }));
+
+/**
* LinkedEditGroup
*
* {

Powered by Google App Engine
This is Rietveld 408576698