| OLD | NEW |
| 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 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1513 "id": String | 1513 "id": String |
| 1514 "error": <span style="color:#999999">optional</span> <a href="#type_RequestErr
or">RequestError</a> | 1514 "error": <span style="color:#999999">optional</span> <a href="#type_RequestErr
or">RequestError</a> |
| 1515 "result": { | 1515 "result": { |
| 1516 "<b>edit</b>": <a href="#type_SourceFileEdit">SourceFileEdit</a> | 1516 "<b>edit</b>": <a href="#type_SourceFileEdit">SourceFileEdit</a> |
| 1517 } | 1517 } |
| 1518 }</pre></div> | 1518 }</pre></div> |
| 1519 <p> | 1519 <p> |
| 1520 Sort all of the directives, unit and class members | 1520 Sort all of the directives, unit and class members |
| 1521 of the given Dart file. | 1521 of the given Dart file. |
| 1522 </p> | 1522 </p> |
| 1523 <p> |
| 1524 If a request is made for a file that does not exist, does not belong |
| 1525 to an analysis root or is not a Dart file, |
| 1526 <tt>SORT_MEMBERS_INVALID_FILE</tt> will be generated. |
| 1527 </p> |
| 1528 <p> |
| 1529 If the Dart file has scan or parse errors, |
| 1530 <tt>SORT_MEMBERS_PARSE_ERRORS</tt> will be generated. |
| 1531 </p> |
| 1523 | 1532 |
| 1524 | 1533 |
| 1525 <h4>Parameters</h4><dl><dt class="field"><b><i>file ( <a href="#type_FileP
ath">FilePath</a> )</i></b></dt><dd> | 1534 <h4>Parameters</h4><dl><dt class="field"><b><i>file ( <a href="#type_FileP
ath">FilePath</a> )</i></b></dt><dd> |
| 1526 | 1535 |
| 1527 <p> | 1536 <p> |
| 1528 The Dart file to sort. | 1537 The Dart file to sort. |
| 1529 </p> | 1538 </p> |
| 1530 </dd></dl><h4>Returns</h4><dl><dt class="field"><b><i>edit ( <a href="
#type_SourceFileEdit">SourceFileEdit</a> )</i></b></dt><dd> | 1539 </dd></dl><h4>Returns</h4><dl><dt class="field"><b><i>edit ( <a href="
#type_SourceFileEdit">SourceFileEdit</a> )</i></b></dt><dd> |
| 1531 | 1540 |
| 1532 <p> | 1541 <p> |
| (...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2681 This error is included for future expansion; at present | 2690 This error is included for future expansion; at present |
| 2682 the analysis server can only speak to one client at a | 2691 the analysis server can only speak to one client at a |
| 2683 time so this error will never occur. | 2692 time so this error will never occur. |
| 2684 </p> | 2693 </p> |
| 2685 </dd><dt class="value">SERVER_ERROR</dt><dd> | 2694 </dd><dt class="value">SERVER_ERROR</dt><dd> |
| 2686 | 2695 |
| 2687 <p> | 2696 <p> |
| 2688 An internal error occurred in the analysis server. | 2697 An internal error occurred in the analysis server. |
| 2689 Also see the server.error notification. | 2698 Also see the server.error notification. |
| 2690 </p> | 2699 </p> |
| 2700 </dd><dt class="value">SORT_MEMBERS_INVALID_FILE</dt><dd> |
| 2701 |
| 2702 <p> |
| 2703 An "edit.sortMembers" request specified a FilePath |
| 2704 which does not match a Dart file in an analysis root. |
| 2705 </p> |
| 2706 </dd><dt class="value">SORT_MEMBERS_PARSE_ERRORS</dt><dd> |
| 2707 |
| 2708 <p> |
| 2709 An "edit.sortMembers" request specified a Dart file that has |
| 2710 scan or parse errors. |
| 2711 </p> |
| 2691 </dd><dt class="value">UNANALYZED_PRIORITY_FILES</dt><dd> | 2712 </dd><dt class="value">UNANALYZED_PRIORITY_FILES</dt><dd> |
| 2692 | 2713 |
| 2693 <p> | 2714 <p> |
| 2694 An "analysis.setPriorityFiles" request includes one or | 2715 An "analysis.setPriorityFiles" request includes one or |
| 2695 more files that are not being analyzed. | 2716 more files that are not being analyzed. |
| 2696 </p> | 2717 </p> |
| 2697 <p> | 2718 <p> |
| 2698 This is a legacy error; it will be removed before the | 2719 This is a legacy error; it will be removed before the |
| 2699 API reaches version 1.0. | 2720 API reaches version 1.0. |
| 2700 </p> | 2721 </p> |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3263 <p> | 3284 <p> |
| 3264 This section contains a list of all of the errors that are | 3285 This section contains a list of all of the errors that are |
| 3265 produced by the server and the data that is returned with each. | 3286 produced by the server and the data that is returned with each. |
| 3266 </p> | 3287 </p> |
| 3267 <p> | 3288 <p> |
| 3268 TBD | 3289 TBD |
| 3269 </p> | 3290 </p> |
| 3270 | 3291 |
| 3271 | 3292 |
| 3272 </body></html> | 3293 </body></html> |
| OLD | NEW |