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 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1383 Future<EditSortMembersResult> sendEditSortMembers(String file) { | 1383 Future<EditSortMembersResult> sendEditSortMembers(String file) { |
1384 var params = new EditSortMembersParams(file).toJson(); | 1384 var params = new EditSortMembersParams(file).toJson(); |
1385 return server.send("edit.sortMembers", params) | 1385 return server.send("edit.sortMembers", params) |
1386 .then((result) { | 1386 .then((result) { |
1387 ResponseDecoder decoder = new ResponseDecoder(null); | 1387 ResponseDecoder decoder = new ResponseDecoder(null); |
1388 return new EditSortMembersResult.fromJson(decoder, 'result', result); | 1388 return new EditSortMembersResult.fromJson(decoder, 'result', result); |
1389 }); | 1389 }); |
1390 } | 1390 } |
1391 | 1391 |
1392 /** | 1392 /** |
| 1393 * Organizes all of the directives - removes unused imports and sorts |
| 1394 * directives of the given Dart file according to the Dart Style Guide. |
| 1395 * |
| 1396 * If a request is made for a file that does not exist, does not belong to an |
| 1397 * analysis root or is not a Dart file, FILE_NOT_ANALYZED will be generated. |
| 1398 * |
| 1399 * If directives of the Dart file cannot be organized, for example because it |
| 1400 * has scan or parse errors, or by other reasons, ORGANIZE_DIRECTIVES_ERROR |
| 1401 * will be generated. The message will provide datails about the reason. |
| 1402 * |
| 1403 * Parameters |
| 1404 * |
| 1405 * file ( FilePath ) |
| 1406 * |
| 1407 * The Dart file to organize directives in. |
| 1408 * |
| 1409 * Returns |
| 1410 * |
| 1411 * edit ( SourceFileEdit ) |
| 1412 * |
| 1413 * The file edit that is to be applied to the given file to effect the |
| 1414 * organizing. |
| 1415 */ |
| 1416 Future<EditOrganizeDirectivesResult> sendEditOrganizeDirectives(String file) { |
| 1417 var params = new EditOrganizeDirectivesParams(file).toJson(); |
| 1418 return server.send("edit.organizeDirectives", params) |
| 1419 .then((result) { |
| 1420 ResponseDecoder decoder = new ResponseDecoder(null); |
| 1421 return new EditOrganizeDirectivesResult.fromJson(decoder, 'result', result
); |
| 1422 }); |
| 1423 } |
| 1424 |
| 1425 /** |
1393 * Create an execution context for the executable file with the given path. | 1426 * Create an execution context for the executable file with the given path. |
1394 * The context that is created will persist until execution.deleteContext is | 1427 * The context that is created will persist until execution.deleteContext is |
1395 * used to delete it. Clients, therefore, are responsible for managing the | 1428 * used to delete it. Clients, therefore, are responsible for managing the |
1396 * lifetime of execution contexts. | 1429 * lifetime of execution contexts. |
1397 * | 1430 * |
1398 * Parameters | 1431 * Parameters |
1399 * | 1432 * |
1400 * contextRoot ( FilePath ) | 1433 * contextRoot ( FilePath ) |
1401 * | 1434 * |
1402 * The path of the Dart or HTML file that will be launched, or the path of | 1435 * The path of the Dart or HTML file that will be launched, or the path of |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1657 case "execution.launchData": | 1690 case "execution.launchData": |
1658 expect(params, isExecutionLaunchDataParams); | 1691 expect(params, isExecutionLaunchDataParams); |
1659 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); | 1692 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); |
1660 break; | 1693 break; |
1661 default: | 1694 default: |
1662 fail('Unexpected notification: $event'); | 1695 fail('Unexpected notification: $event'); |
1663 break; | 1696 break; |
1664 } | 1697 } |
1665 } | 1698 } |
1666 } | 1699 } |
OLD | NEW |