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 ae5a82126dec568efe5e01b5ce2188db53881050..63751e53c965e924c10feadc0f7e3f07a1f68343 100644 |
--- a/pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart |
+++ b/pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart |
@@ -908,6 +908,35 @@ final Matcher isAnalysisFoldingParams = new LazyMatcher(() => |
{"file": isFilePath, "regions": isListOf(isFoldingRegion)})); |
/** |
+ * analysis.getNavigation params |
+ * |
+ * { |
+ * "file": FilePath |
+ * "offset": int |
+ * "length": int |
+ * } |
+ */ |
+final Matcher isAnalysisGetNavigationParams = new LazyMatcher(() => |
+ new MatchesJsonObject("analysis.getNavigation params", |
+ {"file": isFilePath, "offset": isInt, "length": isInt})); |
+ |
+/** |
+ * analysis.getNavigation result |
+ * |
+ * { |
+ * "files": List<FilePath> |
+ * "targets": List<NavigationTarget> |
+ * "regions": List<NavigationRegion> |
+ * } |
+ */ |
+final Matcher isAnalysisGetNavigationResult = new LazyMatcher( |
+ () => new MatchesJsonObject("analysis.getNavigation result", { |
+ "files": isListOf(isFilePath), |
+ "targets": isListOf(isNavigationTarget), |
+ "regions": isListOf(isNavigationRegion) |
+ })); |
+ |
+/** |
* analysis.handleWatchEvents params |
* |
* { |