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

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

Issue 874373003: Library dependencies server API updates (to pass package maps). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 libraries referenced by any files in existing 234 * Return library dependency information for use in client-side indexing and
235 * analysis roots. 235 * package URI resolution.
236 * 236 *
237 * Returns 237 * Returns
238 * 238 *
239 * libraries ( List<FilePath> ) 239 * libraries ( List<FilePath> )
240 * 240 *
241 * A list of the paths of library elements referenced by files in existing 241 * A list of the paths of library elements referenced by files in existing
242 * analysis roots. 242 * analysis roots.
243 *
244 * packageMap ( Map<String, FilePath> )
245 *
246 * A mapping from package names to source directories for use in
247 * client-side package URI resolution.
243 */ 248 */
244 Future<AnalysisGetLibraryDependenciesResult> sendAnalysisGetLibraryDependencie s() { 249 Future<AnalysisGetLibraryDependenciesResult> sendAnalysisGetLibraryDependencie s() {
245 return server.send("analysis.getLibraryDependencies", null) 250 return server.send("analysis.getLibraryDependencies", null)
246 .then((result) { 251 .then((result) {
247 ResponseDecoder decoder = new ResponseDecoder(null); 252 ResponseDecoder decoder = new ResponseDecoder(null);
248 return new AnalysisGetLibraryDependenciesResult.fromJson(decoder, 'result' , result); 253 return new AnalysisGetLibraryDependenciesResult.fromJson(decoder, 'result' , result);
249 }); 254 });
250 } 255 }
251 256
252 /** 257 /**
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1544 case "execution.launchData": 1549 case "execution.launchData":
1545 expect(params, isExecutionLaunchDataParams); 1550 expect(params, isExecutionLaunchDataParams);
1546 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params)); 1551 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params));
1547 break; 1552 break;
1548 default: 1553 default:
1549 fail('Unexpected notification: $event'); 1554 fail('Unexpected notification: $event');
1550 break; 1555 break;
1551 } 1556 }
1552 } 1557 }
1553 } 1558 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698