OLD | NEW |
---|---|
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <meta charset="UTF-8"/> | 3 <meta charset="UTF-8"/> |
4 <title>Analysis Server API Specification</title> | 4 <title>Analysis Server API Specification</title> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <h1>Analysis Server API Specification</h1> | 7 <h1>Analysis Server API Specification</h1> |
8 <h1 style="color:#999999">Version <version>1.9.0</version></h1> | 8 <h1 style="color:#999999">Version <version>1.9.0</version></h1> |
9 <p> | 9 <p> |
10 This document contains a specification of the API provided by the | 10 This document contains a specification of the API provided by the |
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1690 <result> | 1690 <result> |
1691 <field name="edit"> | 1691 <field name="edit"> |
1692 <ref>SourceFileEdit</ref> | 1692 <ref>SourceFileEdit</ref> |
1693 <p> | 1693 <p> |
1694 The file edit that is to be applied to the given file to effect | 1694 The file edit that is to be applied to the given file to effect |
1695 the sorting. | 1695 the sorting. |
1696 </p> | 1696 </p> |
1697 </field> | 1697 </field> |
1698 </result> | 1698 </result> |
1699 </request> | 1699 </request> |
1700 <request method="organizeDirectives"> | |
1701 <p> | |
1702 Organizes all of the directives - removes unused imports and sorts | |
1703 directives of the given Dart file. | |
1704 </p> | |
1705 <p> | |
1706 If a request is made for a file that does not exist, does not belong | |
1707 to an analysis root or is not a Dart file, | |
1708 <tt>ORGANIZE_DIRECTIVES_INVALID_FILE</tt> will be generated. | |
1709 </p> | |
1710 <p> | |
1711 If the Dart file has scan or parse errors, | |
1712 <tt>ORGANIZE_DIRECTIVES_PARSE_ERRORS</tt> will be generated. | |
1713 </p> | |
1714 <params> | |
1715 <field name="file"> | |
1716 <ref>FilePath</ref> | |
1717 <p> | |
1718 The Dart file to organize directives in. | |
1719 </p> | |
1720 </field> | |
1721 </params> | |
1722 <result> | |
1723 <field name="edit"> | |
1724 <ref>SourceFileEdit</ref> | |
Brian Wilkerson
2015/07/31 19:47:35
Do we always want to replace all of the imports as
scheglov
2015/07/31 20:25:02
Discussed offline.
A single file edit, with possib
| |
1725 <p> | |
1726 The file edit that is to be applied to the given file to effect | |
1727 the organizing. | |
1728 </p> | |
1729 </field> | |
1730 </result> | |
1731 </request> | |
1700 </domain> | 1732 </domain> |
1701 <domain name="execution"> | 1733 <domain name="execution"> |
1702 <p> | 1734 <p> |
1703 The execution domain contains commands related to providing an execution | 1735 The execution domain contains commands related to providing an execution |
1704 or debugging experience. | 1736 or debugging experience. |
1705 </p> | 1737 </p> |
1706 <request method="createContext"> | 1738 <request method="createContext"> |
1707 <p> | 1739 <p> |
1708 Create an execution context for the executable file with the given | 1740 Create an execution context for the executable file with the given |
1709 path. The context that is created will persist until | 1741 path. The context that is created will persist until |
(...skipping 1739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3449 </p> | 3481 </p> |
3450 </value> | 3482 </value> |
3451 <value> | 3483 <value> |
3452 <code>NO_INDEX_GENERATED</code> | 3484 <code>NO_INDEX_GENERATED</code> |
3453 <p> | 3485 <p> |
3454 The "--no-index" flag was passed when the analysis server created, | 3486 The "--no-index" flag was passed when the analysis server created, |
3455 but this API call requires an index to have been generated. | 3487 but this API call requires an index to have been generated. |
3456 </p> | 3488 </p> |
3457 </value> | 3489 </value> |
3458 <value> | 3490 <value> |
3491 <code>ORGANIZE_DIRECTIVES_INVALID_FILE</code> | |
Brian Wilkerson
2015/07/31 19:47:35
I'm not sure I like this trend of having a separat
scheglov
2015/07/31 20:25:02
Done.
| |
3492 <p> | |
3493 An "edit.organizeDirectives" request specified a FilePath | |
3494 which does not match a Dart file in an analysis root. | |
3495 </p> | |
3496 </value> | |
3497 <value> | |
3498 <code>ORGANIZE_DIRECTIVES_PARSE_ERRORS</code> | |
3499 <p> | |
3500 An "edit.organizeDirectives" request specified a Dart file that ha s | |
3501 scan or parse errors. | |
3502 </p> | |
3503 </value> | |
3504 <value> | |
3459 <code>REFACTORING_REQUEST_CANCELLED</code> | 3505 <code>REFACTORING_REQUEST_CANCELLED</code> |
3460 <p> | 3506 <p> |
3461 Another refactoring request was received during processing of | 3507 Another refactoring request was received during processing of |
3462 this one. | 3508 this one. |
3463 </p> | 3509 </p> |
3464 </value> | 3510 </value> |
3465 <value> | 3511 <value> |
3466 <code>SERVER_ALREADY_STARTED</code> | 3512 <code>SERVER_ALREADY_STARTED</code> |
3467 <p> | 3513 <p> |
3468 The analysis server has already been started (and hence | 3514 The analysis server has already been started (and hence |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4171 <h2>Errors</h2> | 4217 <h2>Errors</h2> |
4172 <p> | 4218 <p> |
4173 This section contains a list of all of the errors that are | 4219 This section contains a list of all of the errors that are |
4174 produced by the server and the data that is returned with each. | 4220 produced by the server and the data that is returned with each. |
4175 </p> | 4221 </p> |
4176 <p> | 4222 <p> |
4177 TBD | 4223 TBD |
4178 </p> | 4224 </p> |
4179 </body> | 4225 </body> |
4180 </html> | 4226 </html> |
OLD | NEW |