| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1658 * file: FilePath | 1658 * file: FilePath |
| 1659 * | 1659 * |
| 1660 * The file in which the specified elements are to be made accessible. | 1660 * The file in which the specified elements are to be made accessible. |
| 1661 * | 1661 * |
| 1662 * elements: List<ImportedElements> | 1662 * elements: List<ImportedElements> |
| 1663 * | 1663 * |
| 1664 * The elements to be made accessible in the specified file. | 1664 * The elements to be made accessible in the specified file. |
| 1665 * | 1665 * |
| 1666 * Returns | 1666 * Returns |
| 1667 * | 1667 * |
| 1668 * edits: List<SourceEdit> | 1668 * edit: SourceFileEdit |
| 1669 * | 1669 * |
| 1670 * The edit(s) to be applied in order to make the specified elements | 1670 * The edits to be applied in order to make the specified elements |
| 1671 * accessible. | 1671 * accessible. The file to be edited will be the defining compilation unit |
| 1672 * of the library containing the file specified in the request, which can |
| 1673 * be different than the file specified in the request if the specified |
| 1674 * file is a part file. |
| 1672 */ | 1675 */ |
| 1673 Future<EditImportElementsResult> sendEditImportElements( | 1676 Future<EditImportElementsResult> sendEditImportElements( |
| 1674 String file, List<ImportedElements> elements) async { | 1677 String file, List<ImportedElements> elements) async { |
| 1675 var params = new EditImportElementsParams(file, elements).toJson(); | 1678 var params = new EditImportElementsParams(file, elements).toJson(); |
| 1676 var result = await server.send("edit.importElements", params); | 1679 var result = await server.send("edit.importElements", params); |
| 1677 ResponseDecoder decoder = new ResponseDecoder(null); | 1680 ResponseDecoder decoder = new ResponseDecoder(null); |
| 1678 return new EditImportElementsResult.fromJson(decoder, 'result', result); | 1681 return new EditImportElementsResult.fromJson(decoder, 'result', result); |
| 1679 } | 1682 } |
| 1680 | 1683 |
| 1681 /** | 1684 /** |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2228 outOfTestExpect(params, isExecutionLaunchDataParams); | 2231 outOfTestExpect(params, isExecutionLaunchDataParams); |
| 2229 _onExecutionLaunchData.add( | 2232 _onExecutionLaunchData.add( |
| 2230 new ExecutionLaunchDataParams.fromJson(decoder, 'params', params)); | 2233 new ExecutionLaunchDataParams.fromJson(decoder, 'params', params)); |
| 2231 break; | 2234 break; |
| 2232 default: | 2235 default: |
| 2233 fail('Unexpected notification: $event'); | 2236 fail('Unexpected notification: $event'); |
| 2234 break; | 2237 break; |
| 2235 } | 2238 } |
| 2236 } | 2239 } |
| 2237 } | 2240 } |
| OLD | NEW |