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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java

Issue 769963003: Add paging support (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 6 years 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 | editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisService.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java
index 9ea41bc626dc6fb0c90491c986ea6ebea3a5f93b..328c9bf4ccf37632f0d249a21688fe52defcd182 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java
@@ -45,7 +45,8 @@ public interface AnalysisServer {
* response for this request will be delayed until they have been computed. If some or all of the
* errors for the file cannot be computed, then the subset of the errors that can be computed will
* be returned and the response will contain an error to indicate why the errors could not be
- * computed.
+ * computed. If the content of the file changes after this request was received but before a
+ * response could be sent, then an error of type CONTENT_MODIFIED will be generated.
*
* This request is intended to be used by clients that cannot asynchronously apply updated error
* information. Clients that can apply error information as it becomes available should use the
@@ -72,6 +73,28 @@ public interface AnalysisServer {
public void analysis_getHover(String file, int offset, GetHoverConsumer consumer);
/**
+ * {@code analysis.getNavigation}
+ *
+ * Return the navigation information associated with the given region of the given file. If the
+ * navigation information for the given file has not yet been computed, or the most recently
+ * computed navigation information for the given file is out of date, then the response for this
+ * request will be delayed until it has been computed. If the content of the file changes after
+ * this request was received but before a response could be sent, then an error of type
+ * CONTENT_MODIFIED will be generated.
+ *
+ * If a navigation region overlaps (but extends either before or after) the given region of the
+ * file it will be included in the result. This means that it is theoretically possible to get the
+ * same navigation region in response to multiple requests. Clients can avoid this by always
+ * choosing a region that starts at the beginning of a line and ends at the end of a (possibly
+ * different) line in the file.
+ *
+ * @param file The file in which navigation information is being requested.
+ * @param offset The offset of the region for which navigation information is being requested.
+ * @param length The length of the region for which navigation information is being requested.
+ */
+ public void analysis_getNavigation(String file, int offset, int length, GetNavigationConsumer consumer);
+
+ /**
* {@code analysis.reanalyze}
*
* Force the re-analysis of everything contained in the existing analysis roots. This will cause
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisService.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698