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

Unified Diff: pkg/analyzer_plugin/doc/tutorial/navigation.md

Issue 3008493002: Add documentation for the new notification support (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_plugin/doc/tutorial/navigation.md
diff --git a/pkg/analyzer_plugin/doc/tutorial/navigation.md b/pkg/analyzer_plugin/doc/tutorial/navigation.md
index fedae23a7069e0c1d55078c37cdec755374f07b0..3e7550ca61e06a307883f8f6569678c999b03024 100644
--- a/pkg/analyzer_plugin/doc/tutorial/navigation.md
+++ b/pkg/analyzer_plugin/doc/tutorial/navigation.md
@@ -15,7 +15,10 @@ When an `analysis.getNavigation` request is received, the method
`handleAnalysisGetNavigation` will be invoked. This method is responsible for
returning a response that contains the available navigation information.
-The easiest way to implement the method `handleAnalysisGetNavigation` is by
+When a notification needs to be sent, the method`sendNavigationNotification`
scheglov 2017/08/24 18:19:21 Add a space between "method" and "`"?
+will be invoked. This method is responsible for sending the notification.
+
+The easiest way to add support for both the request and the notification is by
adding the classes `NavigationMixin` and `DartNavigationMixin` (from
`package:analyzer_plugin/plugin/navigation_mixin.dart`) to the list of mixins
for your subclass of `ServerPlugin`. This will leave you with one abstract
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698