| 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/spec/generate_files". | 7 // "pkg/analysis_server/spec/generate_files". |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Convenience methods for running integration tests | 10 * Convenience methods for running integration tests |
| (...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 } | 1095 } |
| 1096 return result; | 1096 return result; |
| 1097 }); | 1097 }); |
| 1098 } | 1098 } |
| 1099 | 1099 |
| 1100 /** | 1100 /** |
| 1101 * Get the changes required to perform a refactoring. | 1101 * Get the changes required to perform a refactoring. |
| 1102 * | 1102 * |
| 1103 * Parameters | 1103 * Parameters |
| 1104 * | 1104 * |
| 1105 * kindId ( RefactoringKind ) | 1105 * kind ( RefactoringKind ) |
| 1106 * | 1106 * |
| 1107 * The identifier of the kind of refactoring to be performed. | 1107 * The kind of refactoring to be performed. |
| 1108 * | 1108 * |
| 1109 * file ( FilePath ) | 1109 * file ( FilePath ) |
| 1110 * | 1110 * |
| 1111 * The file containing the code involved in the refactoring. | 1111 * The file containing the code involved in the refactoring. |
| 1112 * | 1112 * |
| 1113 * offset ( int ) | 1113 * offset ( int ) |
| 1114 * | 1114 * |
| 1115 * The offset of the region involved in the refactoring. | 1115 * The offset of the region involved in the refactoring. |
| 1116 * | 1116 * |
| 1117 * length ( int ) | 1117 * length ( int ) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 * potentialEdits ( optional List<String> ) | 1155 * potentialEdits ( optional List<String> ) |
| 1156 * | 1156 * |
| 1157 * The ids of source edits that are not known to be valid. An edit is not | 1157 * The ids of source edits that are not known to be valid. An edit is not |
| 1158 * known to be valid if there was insufficient type information for the | 1158 * known to be valid if there was insufficient type information for the |
| 1159 * server to be able to determine whether or not the code needs to be | 1159 * server to be able to determine whether or not the code needs to be |
| 1160 * modified, such as when a member is being renamed and there is a | 1160 * modified, such as when a member is being renamed and there is a |
| 1161 * reference to a member from an unknown type. This field will be omitted | 1161 * reference to a member from an unknown type. This field will be omitted |
| 1162 * if the change field is omitted or if there are no potential edits for | 1162 * if the change field is omitted or if there are no potential edits for |
| 1163 * the refactoring. | 1163 * the refactoring. |
| 1164 */ | 1164 */ |
| 1165 Future sendEditGetRefactoring(String kindId, String file, int offset, int leng
th, bool validateOnly, {Map<String, dynamic> options, bool checkTypes: true}) { | 1165 Future sendEditGetRefactoring(String kind, String file, int offset, int length
, bool validateOnly, {Map<String, dynamic> options, bool checkTypes: true}) { |
| 1166 Map<String, dynamic> params = {}; | 1166 Map<String, dynamic> params = {}; |
| 1167 params["kindId"] = kindId; | 1167 params["kind"] = kind; |
| 1168 params["file"] = file; | 1168 params["file"] = file; |
| 1169 params["offset"] = offset; | 1169 params["offset"] = offset; |
| 1170 params["length"] = length; | 1170 params["length"] = length; |
| 1171 params["validateOnly"] = validateOnly; | 1171 params["validateOnly"] = validateOnly; |
| 1172 if (options != null) { | 1172 if (options != null) { |
| 1173 params["options"] = options; | 1173 params["options"] = options; |
| 1174 } | 1174 } |
| 1175 if (checkTypes) { | 1175 if (checkTypes) { |
| 1176 expect(params, isEditGetRefactoringParams); | 1176 expect(params, isEditGetRefactoringParams); |
| 1177 } | 1177 } |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1454 case "debug.launchData": | 1454 case "debug.launchData": |
| 1455 expect(params, isDebugLaunchDataParams); | 1455 expect(params, isDebugLaunchDataParams); |
| 1456 _onDebugLaunchData.add(params); | 1456 _onDebugLaunchData.add(params); |
| 1457 break; | 1457 break; |
| 1458 default: | 1458 default: |
| 1459 fail('Unexpected notification: $event'); | 1459 fail('Unexpected notification: $event'); |
| 1460 break; | 1460 break; |
| 1461 } | 1461 } |
| 1462 } | 1462 } |
| 1463 } | 1463 } |
| OLD | NEW |