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

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

Issue 861893003: Library Dependencies Analysis service API. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
OLDNEW
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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 Future<AnalysisGetHoverResult> sendAnalysisGetHover(String file, int offset) { 224 Future<AnalysisGetHoverResult> sendAnalysisGetHover(String file, int offset) {
225 var params = new AnalysisGetHoverParams(file, offset).toJson(); 225 var params = new AnalysisGetHoverParams(file, offset).toJson();
226 return server.send("analysis.getHover", params) 226 return server.send("analysis.getHover", params)
227 .then((result) { 227 .then((result) {
228 ResponseDecoder decoder = new ResponseDecoder(null); 228 ResponseDecoder decoder = new ResponseDecoder(null);
229 return new AnalysisGetHoverResult.fromJson(decoder, 'result', result); 229 return new AnalysisGetHoverResult.fromJson(decoder, 'result', result);
230 }); 230 });
231 } 231 }
232 232
233 /** 233 /**
234 * Return a list of all of the directories containing libraries referenced by
235 * any files in existing analysis roots.
236 *
237 * Returns
238 *
239 * directories ( List<FilePath> )
240 *
241 * A list of the paths of directories that contain library elements
242 * referenced by files in existing analysis roots.
243 */
244 Future<AnalysisGetLibraryDependenciesResult> sendAnalysisGetLibraryDependencie s() {
245 return server.send("analysis.getLibraryDependencies", null)
246 .then((result) {
247 ResponseDecoder decoder = new ResponseDecoder(null);
248 return new AnalysisGetLibraryDependenciesResult.fromJson(decoder, 'result' , result);
249 });
250 }
251
252 /**
234 * Return the navigation information associated with the given region of the 253 * Return the navigation information associated with the given region of the
235 * given file. If the navigation information for the given file has not yet 254 * given file. If the navigation information for the given file has not yet
236 * been computed, or the most recently computed navigation information for 255 * been computed, or the most recently computed navigation information for
237 * the given file is out of date, then the response for this request will be 256 * the given file is out of date, then the response for this request will be
238 * delayed until it has been computed. If the content of the file changes 257 * delayed until it has been computed. If the content of the file changes
239 * after this request was received but before a response could be sent, then 258 * after this request was received but before a response could be sent, then
240 * an error of type CONTENT_MODIFIED will be generated. 259 * an error of type CONTENT_MODIFIED will be generated.
241 * 260 *
242 * If a navigation region overlaps (but extends either before or after) the 261 * If a navigation region overlaps (but extends either before or after) the
243 * given region of the file it will be included in the result. This means 262 * given region of the file it will be included in the result. This means
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 case "execution.launchData": 1542 case "execution.launchData":
1524 expect(params, isExecutionLaunchDataParams); 1543 expect(params, isExecutionLaunchDataParams);
1525 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params)); 1544 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params));
1526 break; 1545 break;
1527 default: 1546 default:
1528 fail('Unexpected notification: $event'); 1547 fail('Unexpected notification: $event');
1529 break; 1548 break;
1530 } 1549 }
1531 } 1550 }
1532 } 1551 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698