Index: pkg/analysis_server/tool/spec/spec_input.html |
diff --git a/pkg/analysis_server/tool/spec/spec_input.html b/pkg/analysis_server/tool/spec/spec_input.html |
index 0f930cf26201f45c77e62b3ab54cf92719612a6e..c58b95dd1a6028eb227081ab8bcf76e324975db4 100644 |
--- a/pkg/analysis_server/tool/spec/spec_input.html |
+++ b/pkg/analysis_server/tool/spec/spec_input.html |
@@ -1326,11 +1326,12 @@ |
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> |
<params> |
<field name="file"> |
@@ -3139,6 +3140,13 @@ |
</p> |
</value> |
<value> |
+ <code>FORMAT_WITH_ERRORS</code> |
+ <p> |
+ An "edit.format" request specified a file that contains syntax |
+ errors. |
+ </p> |
+ </value> |
+ <value> |
<code>GET_ERRORS_INVALID_FILE</code> |
<p> |
An "analysis.getErrors" request specified a FilePath |