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

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

Issue 1099633004: Fix error handling for formatting and update the spec (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 e5343af973c5205466b0fe178caf3d850980e31a..ce099b1e7ff649cc9f3b224952585d7e18b71b25 100644
--- a/pkg/analysis_server/doc/api.html
+++ b/pkg/analysis_server/doc/api.html
@@ -1545,11 +1545,12 @@ dt.typeDefinition {
selection offset and selection length.
</p>
<p>
- If a request is made for a file which does not exist, or
- which is not currently subject to analysis (e.g. because it
- is not associated with any analysis root specified to
- analysis.setAnalysisRoots), an error of type
- <tt>FORMAT_INVALID_FILE</tt> will be generated.
+ If a request is made for a file which does not exist, or which is not
+ currently subject to analysis (e.g. because it is not associated with
+ any analysis root specified to analysis.setAnalysisRoots), an error of
+ type <tt>FORMAT_INVALID_FILE</tt> will be generated. If the source
+ contains syntax errors, an error of type <tt>FORMAT_WITH_ERRORS</tt>
+ will be generated.
</p>
@@ -3141,6 +3142,12 @@ dt.typeDefinition {
An "edit.format" request specified a FilePath
which does not match a Dart file in an analysis root.
</p>
+ </dd><dt class="value">FORMAT_WITH_ERRORS</dt><dd>
+
+ <p>
+ An "edit.format" request specified a file that contains syntax
+ errors.
+ </p>
</dd><dt class="value">GET_ERRORS_INVALID_FILE</dt><dd>
<p>

Powered by Google App Engine
This is Rietveld 408576698