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

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

Issue 2908523002: Add a getNavigation request for plugins (Closed)
Patch Set: Created 3 years, 7 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 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
*
* {

Powered by Google App Engine
This is Rietveld 408576698