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

Unified Diff: pkg/analyzer_plugin/lib/plugin/plugin.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
« no previous file with comments | « pkg/analyzer_plugin/doc/api.html ('k') | pkg/analyzer_plugin/lib/protocol/protocol_constants.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_plugin/lib/plugin/plugin.dart
diff --git a/pkg/analyzer_plugin/lib/plugin/plugin.dart b/pkg/analyzer_plugin/lib/plugin/plugin.dart
index 406bbf3f65664a76efd327211348b03e1ab47c4a..7957ceb16fa2bcf9d6b6f456ca6d92d41d32afcf 100644
--- a/pkg/analyzer_plugin/lib/plugin/plugin.dart
+++ b/pkg/analyzer_plugin/lib/plugin/plugin.dart
@@ -192,6 +192,15 @@ abstract class ServerPlugin {
AnalysisDriverGeneric createAnalysisDriver(ContextRoot contextRoot);
/**
+ * Handle an 'analysis.getNavigation' request.
+ */
+ Future<AnalysisGetNavigationResult> handleAnalysisGetNavigation(
+ AnalysisGetNavigationParams params) async {
+ return new AnalysisGetNavigationResult(
+ <String>[], <NavigationTarget>[], <NavigationRegion>[]);
+ }
+
+ /**
* Handle an 'analysis.handleWatchEvents' request.
*/
Future<AnalysisHandleWatchEventsResult> handleAnalysisHandleWatchEvents(
@@ -492,6 +501,10 @@ abstract class ServerPlugin {
Future<Response> _getResponse(Request request, int requestTime) async {
ResponseResult result = null;
switch (request.method) {
+ case ANALYSIS_REQUEST_GET_NAVIGATION:
+ var params = new AnalysisGetNavigationParams.fromRequest(request);
+ result = await handleAnalysisGetNavigation(params);
+ break;
case ANALYSIS_REQUEST_HANDLE_WATCH_EVENTS:
var params = new AnalysisHandleWatchEventsParams.fromRequest(request);
result = await handleAnalysisHandleWatchEvents(params);
« no previous file with comments | « pkg/analyzer_plugin/doc/api.html ('k') | pkg/analyzer_plugin/lib/protocol/protocol_constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698