Chromium Code Reviews| 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">WORKING DRAFT - Version <version>0.3</version></h1 > | 8 <h1 style="color:#999999">WORKING DRAFT - Version <version>0.3</version></h1 > |
| 9 <p> | 9 <p> |
| 10 This document contains a specification of the API provided by | 10 This document contains a specification of the API provided by |
| (...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1231 in the section titled <a | 1231 in the section titled <a |
| 1232 href="#refactorings">Refactorings</a>, labeled as | 1232 href="#refactorings">Refactorings</a>, labeled as |
| 1233 “Feedback”. | 1233 “Feedback”. |
| 1234 </p> | 1234 </p> |
| 1235 </field> | 1235 </field> |
| 1236 <field name="change" optional="true"> | 1236 <field name="change" optional="true"> |
| 1237 <ref>SourceChange</ref> | 1237 <ref>SourceChange</ref> |
| 1238 <p> | 1238 <p> |
| 1239 The changes that are to be applied to affect the | 1239 The changes that are to be applied to affect the |
| 1240 refactoring. This field will be omitted if there are | 1240 refactoring. This field will be omitted if there are |
| 1241 problems that prevent a set of changed from being | 1241 problems that prevent a set of changes from being |
| 1242 computed, such as having no options specified for a | 1242 computed, such as having no options specified for a |
| 1243 refactoring that requires them, or if only validation | 1243 refactoring that requires them, or if only validation |
| 1244 was requested. | 1244 was requested. |
| 1245 </p> | 1245 </p> |
| 1246 </field> | 1246 </field> |
| 1247 <field name="potentialChanges" optional="true"> | |
|
scheglov
2014/08/15 18:38:35
"potentialEdits"?
Brian Wilkerson
2014/08/15 18:44:24
I chose the name to be consistent with the 'change
| |
| 1248 <list><ref>String</ref></list> | |
| 1249 <p> | |
| 1250 The ids of source edits that are not known to be valid. An edit is | |
| 1251 not known to be valid if there was insufficient type information | |
| 1252 for the server to be able to determine whether or not the code | |
| 1253 needs to be modified, such as when a member is being renamed and | |
| 1254 there is a reference to a member from an unknown type. This field | |
| 1255 will be omitted if the change field is omitted or if there are no | |
| 1256 potential edits for the refactoring. | |
| 1257 </p> | |
| 1258 </field> | |
| 1247 </result> | 1259 </result> |
| 1248 </request> | 1260 </request> |
| 1249 </domain> | 1261 </domain> |
| 1250 <domain name="debug"> | 1262 <domain name="debug"> |
| 1251 <p> | 1263 <p> |
| 1252 The debugging domain contains commands related to providing a | 1264 The debugging domain contains commands related to providing a |
| 1253 debugging experience. | 1265 debugging experience. |
| 1254 </p> | 1266 </p> |
| 1255 <request method="createContext"> | 1267 <request method="createContext"> |
| 1256 <p> | 1268 <p> |
| (...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2704 The length of the region to be modified. | 2716 The length of the region to be modified. |
| 2705 </p> | 2717 </p> |
| 2706 </field> | 2718 </field> |
| 2707 <field name="replacement"> | 2719 <field name="replacement"> |
| 2708 <ref>String</ref> | 2720 <ref>String</ref> |
| 2709 <p> | 2721 <p> |
| 2710 The code that is to replace the specified region in the | 2722 The code that is to replace the specified region in the |
| 2711 original code. | 2723 original code. |
| 2712 </p> | 2724 </p> |
| 2713 </field> | 2725 </field> |
| 2726 <field name="id" optional="true"> | |
| 2727 <ref>String</ref> | |
| 2728 <p> | |
| 2729 An identifier that uniquely identifies this source edit from other | |
| 2730 edits in the same response. This field is omitted unless a | |
| 2731 containing structure needs to be able to identify the edit for | |
| 2732 some reason. | |
| 2733 </p> | |
| 2734 <p> | |
| 2735 For example, some refactoring operations can produce edits that | |
| 2736 might not be appropriate (referred to as potential edits). Such | |
| 2737 edits will have an id so that they can be referenced. Edits in | |
| 2738 the same response that do not need to be referenced will not have | |
| 2739 an id. | |
| 2740 </p> | |
| 2741 </field> | |
| 2714 </object> | 2742 </object> |
| 2715 </type> | 2743 </type> |
| 2716 <type name="SourceFileEdit"> | 2744 <type name="SourceFileEdit"> |
| 2717 <p> | 2745 <p> |
| 2718 A description of a set of changes to a single file. | 2746 A description of a set of changes to a single file. |
| 2719 </p> | 2747 </p> |
| 2720 <object> | 2748 <object> |
| 2721 <field name="file"> | 2749 <field name="file"> |
| 2722 <ref>FilePath</ref> | 2750 <ref>FilePath</ref> |
| 2723 <p> | 2751 <p> |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3089 <h2>Errors</h2> | 3117 <h2>Errors</h2> |
| 3090 <p> | 3118 <p> |
| 3091 This section contains a list of all of the errors that are | 3119 This section contains a list of all of the errors that are |
| 3092 produced by the server and the data that is returned with each. | 3120 produced by the server and the data that is returned with each. |
| 3093 </p> | 3121 </p> |
| 3094 <p> | 3122 <p> |
| 3095 TBD | 3123 TBD |
| 3096 </p> | 3124 </p> |
| 3097 </body> | 3125 </body> |
| 3098 </html> | 3126 </html> |
| OLD | NEW |