Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Side by Side Diff: pkg/analysis_server/test/integration/support/integration_test_methods.dart

Issue 2972833002: Initial implementation of copy/paste support (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 * 258 *
259 * The length of the region for which import information is being 259 * The length of the region for which import information is being
260 * requested. 260 * requested.
261 * 261 *
262 * Returns 262 * Returns
263 * 263 *
264 * elements: List<ImportedElements> 264 * elements: List<ImportedElements>
265 * 265 *
266 * The information about the elements that are referenced in the specified 266 * The information about the elements that are referenced in the specified
267 * region of the specified file that come from imported libraries. 267 * region of the specified file that come from imported libraries.
268 *
269 * complete: bool
270 *
271 * True if all of the elements that are referenced in the specified region
272 * are included in the list of elements. The list of elements will be
273 * incomplete if there is an error in the specified region that prevents an
274 * identifier from being resolved to a single element.
275 */ 268 */
276 Future<AnalysisGetImportedElementsResult> sendAnalysisGetImportedElements( 269 Future<AnalysisGetImportedElementsResult> sendAnalysisGetImportedElements(
277 String file, int offset, int length) async { 270 String file, int offset, int length) async {
278 var params = 271 var params =
279 new AnalysisGetImportedElementsParams(file, offset, length).toJson(); 272 new AnalysisGetImportedElementsParams(file, offset, length).toJson();
280 var result = await server.send("analysis.getImportedElements", params); 273 var result = await server.send("analysis.getImportedElements", params);
281 ResponseDecoder decoder = new ResponseDecoder(null); 274 ResponseDecoder decoder = new ResponseDecoder(null);
282 return new AnalysisGetImportedElementsResult.fromJson( 275 return new AnalysisGetImportedElementsResult.fromJson(
283 decoder, 'result', result); 276 decoder, 'result', result);
284 } 277 }
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 ResponseDecoder decoder = new ResponseDecoder(null); 1611 ResponseDecoder decoder = new ResponseDecoder(null);
1619 return new EditListPostfixCompletionTemplatesResult.fromJson( 1612 return new EditListPostfixCompletionTemplatesResult.fromJson(
1620 decoder, 'result', result); 1613 decoder, 'result', result);
1621 } 1614 }
1622 1615
1623 /** 1616 /**
1624 * Return a list of edits that would need to be applied in order to ensure 1617 * Return a list of edits that would need to be applied in order to ensure
1625 * that all of the elements in the specified list of imported elements are 1618 * that all of the elements in the specified list of imported elements are
1626 * accessible within the library. 1619 * accessible within the library.
1627 * 1620 *
1621 * If a request is made for a file that does not exist, or that is not
1622 * currently subject to analysis (e.g. because it is not associated with any
1623 * analysis root specified via analysis.setAnalysisRoots), an error of type
1624 * IMPORT_ELEMENTS_INVALID_FILE will be generated.
1625 *
1628 * Parameters 1626 * Parameters
1629 * 1627 *
1630 * file: FilePath 1628 * file: FilePath
1631 * 1629 *
1632 * The file in which the specified elements are to be made accessible. 1630 * The file in which the specified elements are to be made accessible.
1633 * 1631 *
1634 * elements: List<ImportedElements> 1632 * elements: List<ImportedElements>
1635 * 1633 *
1636 * The elements to be made accessible in the specified file. 1634 * The elements to be made accessible in the specified file.
1637 * 1635 *
1638 * Returns 1636 * Returns
1639 * 1637 *
1640 * edits: List<SourceEdit> 1638 * edits: List<SourceEdit>
1641 * 1639 *
1642 * The edit(s) to be applied in order to make the specified elements 1640 * The edit(s) to be applied in order to make the specified elements
1643 * accessible. 1641 * accessible.
1644 *
1645 * complete: bool
1646 *
1647 * True if all of the elements that are to be made accessible would be
1648 * accessible if the edits were applied. The edits will not be complete,
1649 * for example, if one of the libraries cannot be referenced in the target
1650 * library or if one of the element names is already imported from a
1651 * different library.
1652 */ 1642 */
1653 Future<EditImportElementsResult> sendEditImportElements( 1643 Future<EditImportElementsResult> sendEditImportElements(
1654 String file, List<ImportedElements> elements) async { 1644 String file, List<ImportedElements> elements) async {
1655 var params = new EditImportElementsParams(file, elements).toJson(); 1645 var params = new EditImportElementsParams(file, elements).toJson();
1656 var result = await server.send("edit.importElements", params); 1646 var result = await server.send("edit.importElements", params);
1657 ResponseDecoder decoder = new ResponseDecoder(null); 1647 ResponseDecoder decoder = new ResponseDecoder(null);
1658 return new EditImportElementsResult.fromJson(decoder, 'result', result); 1648 return new EditImportElementsResult.fromJson(decoder, 'result', result);
1659 } 1649 }
1660 1650
1661 /** 1651 /**
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
2162 outOfTestExpect(params, isExecutionLaunchDataParams); 2152 outOfTestExpect(params, isExecutionLaunchDataParams);
2163 _onExecutionLaunchData.add( 2153 _onExecutionLaunchData.add(
2164 new ExecutionLaunchDataParams.fromJson(decoder, 'params', params)); 2154 new ExecutionLaunchDataParams.fromJson(decoder, 'params', params));
2165 break; 2155 break;
2166 default: 2156 default:
2167 fail('Unexpected notification: $event'); 2157 fail('Unexpected notification: $event');
2168 break; 2158 break;
2169 } 2159 }
2170 } 2160 }
2171 } 2161 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698