Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 | 1 |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="UTF-8"/> | 4 <meta charset="UTF-8"/> |
| 5 <title>Analysis Server API Specification</title> | 5 <title>Analysis Server API Specification</title> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <h1>Analysis Server API Specification</h1> | 8 <h1>Analysis Server API Specification</h1> |
| 9 <h1 style="color:#999999">Version <version>1.0.0</version></h1> | 9 <h1 style="color:#999999">Version <version>1.0.0</version></h1> |
| 10 <p> | 10 <p> |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 387 <map> | 387 <map> |
| 388 <key><ref>String</ref></key> | 388 <key><ref>String</ref></key> |
| 389 <value> | 389 <value> |
| 390 <map> | 390 <map> |
| 391 <key><ref>String</ref></key> | 391 <key><ref>String</ref></key> |
| 392 <value><list><ref>FilePath</ref></list></value> | 392 <value><list><ref>FilePath</ref></list></value> |
| 393 </map> | 393 </map> |
| 394 </value> | 394 </value> |
| 395 </map> | 395 </map> |
| 396 <p> | 396 <p> |
| 397 A mapping from context source roots to package maps which map | 397 A mapping from context source roots to package maps which map |
| 398 package names to source directories for use in client-side | 398 package names to source directories for use in client-side |
| 399 package URI resolution. | 399 package URI resolution. |
| 400 </p> | 400 </p> |
| 401 </field> | 401 </field> |
| 402 </result> | 402 </result> |
| 403 </request> | 403 </request> |
| 404 <request method="getNavigation"> | 404 <request method="getNavigation"> |
| 405 <p> | 405 <p> |
| 406 Return the navigation information associated with the given region of | 406 Return the navigation information associated with the given region of |
| 407 the given file. If the navigation information for the given file has | 407 the given file. If the navigation information for the given file has |
| 408 not yet been computed, or the most recently computed navigation | 408 not yet been computed, or the most recently computed navigation |
| (...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1650 </request> | 1650 </request> |
| 1651 <request method="mapUri"> | 1651 <request method="mapUri"> |
| 1652 <p> | 1652 <p> |
| 1653 Map a URI from the execution context to the file that it corresponds | 1653 Map a URI from the execution context to the file that it corresponds |
| 1654 to, or map a file to the URI that it corresponds to in the execution | 1654 to, or map a file to the URI that it corresponds to in the execution |
| 1655 context. | 1655 context. |
| 1656 </p> | 1656 </p> |
| 1657 <p> | 1657 <p> |
| 1658 Exactly one of the file and uri fields must be provided. | 1658 Exactly one of the file and uri fields must be provided. |
| 1659 </p> | 1659 </p> |
| 1660 <p> | |
| 1661 If the file field is provided and the value is not the path of a file | |
| 1662 (either the file does not exist or the path references something other | |
| 1663 than a file), then an error of type <tt>MAP_URI_INVALID_FILE</tt> will | |
| 1664 be generated. | |
| 1665 </p> | |
| 1666 <p> | |
| 1667 If the uri field is provided and the value is not a valid URI or if | |
| 1668 the URI references something that is not a file (either a file that | |
| 1669 does not exist or something other than a file), then an error of type | |
| 1670 <tt>MAP_URI_INVALID_URI</tt> will be generated. | |
| 1671 </p> | |
| 1672 <p> | |
| 1673 If the contextRoot used to create the execution context is not a file | |
| 1674 (either the file does not exist or the path references something other | |
| 1675 than a file), then an error of type <tt>INVALID_EXECUTION_CONTEXT</tt> | |
| 1676 will be generated. | |
|
scheglov
2015/02/02 20:35:43
Why not generate this error in response to executi
Brian Wilkerson
2015/02/02 20:44:03
The presence or absence of the resource, as well a
scheglov
2015/02/02 20:47:04
Right.
Thank you for explaining this!
| |
| 1677 </p> | |
| 1660 <params> | 1678 <params> |
| 1661 <field name="id"> | 1679 <field name="id"> |
| 1662 <ref>ExecutionContextId</ref> | 1680 <ref>ExecutionContextId</ref> |
| 1663 <p> | 1681 <p> |
| 1664 The identifier of the execution context in which the URI is to be | 1682 The identifier of the execution context in which the URI is to be |
| 1665 mapped. | 1683 mapped. |
| 1666 </p> | 1684 </p> |
| 1667 </field> | 1685 </field> |
| 1668 <field name="file" optional="true"> | 1686 <field name="file" optional="true"> |
| 1669 <ref>FilePath</ref> | 1687 <ref>FilePath</ref> |
| (...skipping 2104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3774 <h2>Errors</h2> | 3792 <h2>Errors</h2> |
| 3775 <p> | 3793 <p> |
| 3776 This section contains a list of all of the errors that are | 3794 This section contains a list of all of the errors that are |
| 3777 produced by the server and the data that is returned with each. | 3795 produced by the server and the data that is returned with each. |
| 3778 </p> | 3796 </p> |
| 3779 <p> | 3797 <p> |
| 3780 TBD | 3798 TBD |
| 3781 </p> | 3799 </p> |
| 3782 </body> | 3800 </body> |
| 3783 </html> | 3801 </html> |
| OLD | NEW |