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

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

Issue 607813003: Use a separate request for 'Sort members' feature, not a refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 </dd></dl></dd></dl> 1248 </dd></dl></dd></dl>
1249 <h2 class="domain"><a name="domain_edit">Domain: edit</a></h2> 1249 <h2 class="domain"><a name="domain_edit">Domain: edit</a></h2>
1250 <p> 1250 <p>
1251 The edit domain contains commands related to edits that can be 1251 The edit domain contains commands related to edits that can be
1252 applied to the code. 1252 applied to the code.
1253 </p> 1253 </p>
1254 1254
1255 1255
1256 1256
1257 1257
1258
1258 <h3>Requests</h3><dl><dt class="request">edit.getAssists</dt><dd><div class= "box"><pre>request: { 1259 <h3>Requests</h3><dl><dt class="request">edit.getAssists</dt><dd><div class= "box"><pre>request: {
1259 "id": String 1260 "id": String
1260 "method": "edit.getAssists" 1261 "method": "edit.getAssists"
1261 "params": { 1262 "params": {
1262 "<b>file</b>": <a href="#type_FilePath">FilePath</a> 1263 "<b>file</b>": <a href="#type_FilePath">FilePath</a>
1263 "<b>offset</b>": int 1264 "<b>offset</b>": int
1264 "<b>length</b>": int 1265 "<b>length</b>": int
1265 } 1266 }
1266 }</pre><br><pre>response: { 1267 }</pre><br><pre>response: {
1267 "id": String 1268 "id": String
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 1496
1496 <p> 1497 <p>
1497 The ids of source edits that are not known to be valid. An edit is 1498 The ids of source edits that are not known to be valid. An edit is
1498 not known to be valid if there was insufficient type information 1499 not known to be valid if there was insufficient type information
1499 for the server to be able to determine whether or not the code 1500 for the server to be able to determine whether or not the code
1500 needs to be modified, such as when a member is being renamed and 1501 needs to be modified, such as when a member is being renamed and
1501 there is a reference to a member from an unknown type. This field 1502 there is a reference to a member from an unknown type. This field
1502 will be omitted if the change field is omitted or if there are no 1503 will be omitted if the change field is omitted or if there are no
1503 potential edits for the refactoring. 1504 potential edits for the refactoring.
1504 </p> 1505 </p>
1506 </dd></dl></dd><dt class="request">edit.sortMembers</dt><dd><div class ="box"><pre>request: {
1507 "id": String
1508 "method": "edit.sortMembers"
1509 "params": {
1510 "<b>file</b>": <a href="#type_FilePath">FilePath</a>
1511 }
1512 }</pre><br><pre>response: {
1513 "id": String
1514 "error": <span style="color:#999999">optional</span> <a href="#type_RequestErr or">RequestError</a>
1515 "result": {
1516 "<b>edit</b>": <a href="#type_SourceFileEdit">SourceFileEdit</a>
1517 }
1518 }</pre></div>
1519 <p>
1520 Sort all of the directives, unit and class members
1521 of the given Dart file.
1522 </p>
1523
1524
1525 <h4>Parameters</h4><dl><dt class="field"><b><i>file ( <a href="#type_FileP ath">FilePath</a> )</i></b></dt><dd>
1526
1527 <p>
1528 The Dart file to sort.
1529 </p>
1530 </dd></dl><h4>Returns</h4><dl><dt class="field"><b><i>edit ( <a href=" #type_SourceFileEdit">SourceFileEdit</a> )</i></b></dt><dd>
1531
1532 <p>
1533 The file edit that is to be applied to the given file to effect
1534 the sorting.
1535 </p>
1505 </dd></dl></dd></dl> 1536 </dd></dl></dd></dl>
1506 <h2 class="domain"><a name="domain_execution">Domain: execution</a></h2> 1537 <h2 class="domain"><a name="domain_execution">Domain: execution</a></h2>
1507 <p> 1538 <p>
1508 The execution domain contains commands related to providing an execution 1539 The execution domain contains commands related to providing an execution
1509 or debugging experience. 1540 or debugging experience.
1510 </p> 1541 </p>
1511 1542
1512 1543
1513 1544
1514 1545
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
2927 and the options that may be provided to edit.getRefactoring. 2958 and the options that may be provided to edit.getRefactoring.
2928 </p> 2959 </p>
2929 2960
2930 2961
2931 2962
2932 2963
2933 2964
2934 2965
2935 2966
2936 2967
2937
2938 <dl><dt class="refactoring">CONVERT_GETTER_TO_METHOD</dt><dd> 2968 <dl><dt class="refactoring">CONVERT_GETTER_TO_METHOD</dt><dd>
2939 <p> 2969 <p>
2940 Convert a getter into a method by removing the keyword get 2970 Convert a getter into a method by removing the keyword get
2941 and adding an empty parameter list. 2971 and adding an empty parameter list.
2942 </p> 2972 </p>
2943 <p> 2973 <p>
2944 It is an error if the range contains anything other than all 2974 It is an error if the range contains anything other than all
2945 or part of the name of a single getter. 2975 or part of the name of a single getter.
2946 </p> 2976 </p>
2947 <h4>Feedback</h4><p>none</p><h4>Options</h4><p>none</p></dd><dt class="ref actoring">CONVERT_METHOD_TO_GETTER</dt><dd> 2977 <h4>Feedback</h4><p>none</p><h4>Options</h4><p>none</p></dd><dt class="ref actoring">CONVERT_METHOD_TO_GETTER</dt><dd>
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
3221 3251
3222 <p> 3252 <p>
3223 The old name of the element before the refactoring. 3253 The old name of the element before the refactoring.
3224 </p> 3254 </p>
3225 </dd></dl><h4>Options</h4><dl><dt class="field"><b><i>newName ( String )</i></b></dt><dd> 3255 </dd></dl><h4>Options</h4><dl><dt class="field"><b><i>newName ( String )</i></b></dt><dd>
3226 3256
3227 <p> 3257 <p>
3228 The name that the element should have after the 3258 The name that the element should have after the
3229 refactoring. 3259 refactoring.
3230 </p> 3260 </p>
3231 </dd></dl></dd><dt class="refactoring">SORT_MEMBERS</dt><dd> 3261 </dd></dl></dd></dl>
3232 <p>
3233 Sort all of the directives, unit and class members
3234 of the given Dart file.
3235 </p>
3236 <p>
3237 The "offset" and "length" fields from the request are ignored, but the
3238 file specified in the request specifies the file to be sorted.
3239 </p>
3240 <h4>Feedback</h4><p>none</p><h4>Options</h4><p>none</p></dd></dl>
3241 <h2>Errors</h2> 3262 <h2>Errors</h2>
3242 <p> 3263 <p>
3243 This section contains a list of all of the errors that are 3264 This section contains a list of all of the errors that are
3244 produced by the server and the data that is returned with each. 3265 produced by the server and the data that is returned with each.
3245 </p> 3266 </p>
3246 <p> 3267 <p>
3247 TBD 3268 TBD
3248 </p> 3269 </p>
3249 3270
3250 3271
3251 </body></html> 3272 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698