| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file has been automatically generated. Please do not edit it manually. | 5 // This file has been automatically generated. Please do not edit it manually. |
| 6 // To regenerate the file, use the script | 6 // To regenerate the file, use the script |
| 7 // "pkg/analysis_server/tool/spec/generate_files". | 7 // "pkg/analysis_server/tool/spec/generate_files". |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Convenience methods for running integration tests | 10 * Convenience methods for running integration tests |
| (...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1195 return server.send("edit.getRefactoring", params) | 1195 return server.send("edit.getRefactoring", params) |
| 1196 .then((result) { | 1196 .then((result) { |
| 1197 if (checkTypes) { | 1197 if (checkTypes) { |
| 1198 expect(result, isEditGetRefactoringResult); | 1198 expect(result, isEditGetRefactoringResult); |
| 1199 } | 1199 } |
| 1200 return result; | 1200 return result; |
| 1201 }); | 1201 }); |
| 1202 } | 1202 } |
| 1203 | 1203 |
| 1204 /** | 1204 /** |
| 1205 * Sort all of the directives, unit and class members of the given Dart file. |
| 1206 * |
| 1207 * Parameters |
| 1208 * |
| 1209 * file ( FilePath ) |
| 1210 * |
| 1211 * The Dart file to sort. |
| 1212 * |
| 1213 * Returns |
| 1214 * |
| 1215 * edit ( SourceFileEdit ) |
| 1216 * |
| 1217 * The file edit that is to be applied to the given file to effect the |
| 1218 * sorting. |
| 1219 */ |
| 1220 Future sendEditSortMembers(String file, {bool checkTypes: true}) { |
| 1221 Map<String, dynamic> params = {}; |
| 1222 params["file"] = file; |
| 1223 if (checkTypes) { |
| 1224 expect(params, isEditSortMembersParams); |
| 1225 } |
| 1226 return server.send("edit.sortMembers", params) |
| 1227 .then((result) { |
| 1228 if (checkTypes) { |
| 1229 expect(result, isEditSortMembersResult); |
| 1230 } |
| 1231 return result; |
| 1232 }); |
| 1233 } |
| 1234 |
| 1235 /** |
| 1205 * Create an execution context for the executable file with the given path. | 1236 * Create an execution context for the executable file with the given path. |
| 1206 * The context that is created will persist until execution.deleteContext is | 1237 * The context that is created will persist until execution.deleteContext is |
| 1207 * used to delete it. Clients, therefore, are responsible for managing the | 1238 * used to delete it. Clients, therefore, are responsible for managing the |
| 1208 * lifetime of execution contexts. | 1239 * lifetime of execution contexts. |
| 1209 * | 1240 * |
| 1210 * Parameters | 1241 * Parameters |
| 1211 * | 1242 * |
| 1212 * contextRoot ( FilePath ) | 1243 * contextRoot ( FilePath ) |
| 1213 * | 1244 * |
| 1214 * The path of the Dart or HTML file that will be launched. | 1245 * The path of the Dart or HTML file that will be launched. |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1470 case "execution.launchData": | 1501 case "execution.launchData": |
| 1471 expect(params, isExecutionLaunchDataParams); | 1502 expect(params, isExecutionLaunchDataParams); |
| 1472 _onExecutionLaunchData.add(params); | 1503 _onExecutionLaunchData.add(params); |
| 1473 break; | 1504 break; |
| 1474 default: | 1505 default: |
| 1475 fail('Unexpected notification: $event'); | 1506 fail('Unexpected notification: $event'); |
| 1476 break; | 1507 break; |
| 1477 } | 1508 } |
| 1478 } | 1509 } |
| 1479 } | 1510 } |
| OLD | NEW |