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

Unified Diff: pkg/analysis_server/doc/api.html

Issue 604333002: Specify when 'sortMembers' will return an error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Specify the specific error codes Created 6 years, 3 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/analysis_server/doc/api.html
diff --git a/pkg/analysis_server/doc/api.html b/pkg/analysis_server/doc/api.html
index dd3426b9a30ef12f11657e70bf27dae6c471a607..08ae2d5334bc6624ca153b456acf00d178fe24a1 100644
--- a/pkg/analysis_server/doc/api.html
+++ b/pkg/analysis_server/doc/api.html
@@ -1520,6 +1520,15 @@ dt.typeDefinition {
Sort all of the directives, unit and class members
of the given Dart file.
</p>
+ <p>
+ If a request is made for a file that does not exist, does not belong
+ to an analysis root or is not a Dart file,
+ <tt>SORT_MEMBERS_INVALID_FILE</tt> will be generated.
+ </p>
+ <p>
+ If the Dart file has scan or parse errors,
+ <tt>SORT_MEMBERS_PARSE_ERRORS</tt> will be generated.
+ </p>
<h4>Parameters</h4><dl><dt class="field"><b><i>file ( <a href="#type_FilePath">FilePath</a> )</i></b></dt><dd>
@@ -2688,6 +2697,18 @@ dt.typeDefinition {
An internal error occurred in the analysis server.
Also see the server.error notification.
</p>
+ </dd><dt class="value">SORT_MEMBERS_INVALID_FILE</dt><dd>
+
+ <p>
+ An "edit.sortMembers" request specified a FilePath
+ which does not match a Dart file in an analysis root.
+ </p>
+ </dd><dt class="value">SORT_MEMBERS_PARSE_ERRORS</dt><dd>
+
+ <p>
+ An "edit.sortMembers" request specified a Dart file that has
+ scan or parse errors.
+ </p>
</dd><dt class="value">UNANALYZED_PRIORITY_FILES</dt><dd>
<p>

Powered by Google App Engine
This is Rietveld 408576698