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

Side by Side Diff: pkg/analysis_server/doc/api.html

Issue 833903005: Analysis server format service wiring (and protocol doc update). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html><head> 1 <html><head>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <title>Analysis Server API Specification</title> 3 <title>Analysis Server API Specification</title>
4 <style>body { 4 <style>body {
5 font-family: sans-serif, serif; 5 font-family: sans-serif, serif;
6 padding-left: 5%; 6 padding-left: 5%;
7 padding-right: 5%; 7 padding-right: 5%;
8 } 8 }
9 h1 { 9 h1 {
10 text-align: center; 10 text-align: center;
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 "<b>selectionLength</b>": int 1434 "<b>selectionLength</b>": int
1435 } 1435 }
1436 }</pre></div> 1436 }</pre></div>
1437 <p> 1437 <p>
1438 Format the contents of a single file. The currently selected region of 1438 Format the contents of a single file. The currently selected region of
1439 text is passed in so that the selection can be preserved across the 1439 text is passed in so that the selection can be preserved across the
1440 formatting operation. The updated selection will be as close to 1440 formatting operation. The updated selection will be as close to
1441 matching the original as possible, but whitespace at the beginning or 1441 matching the original as possible, but whitespace at the beginning or
1442 end of the selected region will be ignored. 1442 end of the selected region will be ignored.
1443 </p> 1443 </p>
1444 <p>
1445 If a request is made for a file which does not exist, or
1446 which is not currently subject to analysis (e.g. because it
1447 is not associated with any analysis root specified to
1448 analysis.setAnalysisRoots), an error of type
1449 <tt>FORMAT_INVALID_FILE</tt> will be generated.
1450 </p>
1444 1451
1445 1452
1446 <h4>Parameters</h4><dl><dt class="field"><b><i>file ( <a href="#type_FileP ath">FilePath</a> )</i></b></dt><dd> 1453 <h4>Parameters</h4><dl><dt class="field"><b><i>file ( <a href="#type_FileP ath">FilePath</a> )</i></b></dt><dd>
1447 1454
1448 <p> 1455 <p>
1449 The file containing the code to be formatted. 1456 The file containing the code to be formatted.
1450 </p> 1457 </p>
1451 </dd><dt class="field"><b><i>selectionOffset ( int )</i></b></dt><dd> 1458 </dd><dt class="field"><b><i>selectionOffset ( int )</i></b></dt><dd>
1452 1459
1453 <p> 1460 <p>
(...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after
2960 execution of the server. 2967 execution of the server.
2961 </p> 2968 </p>
2962 2969
2963 <dl><dt class="value">CONTENT_MODIFIED</dt><dd> 2970 <dl><dt class="value">CONTENT_MODIFIED</dt><dd>
2964 2971
2965 <p> 2972 <p>
2966 An "analysis.getErrors" or "analysis.getNavigation" request could 2973 An "analysis.getErrors" or "analysis.getNavigation" request could
2967 not be satisfied because the content of the file changed before 2974 not be satisfied because the content of the file changed before
2968 the requested results could be computed. 2975 the requested results could be computed.
2969 </p> 2976 </p>
2977 </dd><dt class="value">FORMAT_INVALID_FILE</dt><dd>
2978
2979 <p>
2980 An "edit.format" request specified a FilePath
2981 which does not match a Dart file in an analysis root.
2982 </p>
2970 </dd><dt class="value">GET_ERRORS_INVALID_FILE</dt><dd> 2983 </dd><dt class="value">GET_ERRORS_INVALID_FILE</dt><dd>
2971 2984
2972 <p> 2985 <p>
2973 An "analysis.getErrors" request specified a FilePath 2986 An "analysis.getErrors" request specified a FilePath
2974 which does not match a file currently subject to 2987 which does not match a file currently subject to
2975 analysis. 2988 analysis.
2976 </p> 2989 </p>
2977 </dd><dt class="value">INVALID_OVERLAY_CHANGE</dt><dd> 2990 </dd><dt class="value">INVALID_OVERLAY_CHANGE</dt><dd>
2978 2991
2979 <p> 2992 <p>
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
3596 <p> 3609 <p>
3597 This section contains a list of all of the errors that are 3610 This section contains a list of all of the errors that are
3598 produced by the server and the data that is returned with each. 3611 produced by the server and the data that is returned with each.
3599 </p> 3612 </p>
3600 <p> 3613 <p>
3601 TBD 3614 TBD
3602 </p> 3615 </p>
3603 3616
3604 3617
3605 </body></html> 3618 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698