| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, Map<String, List<FilePath>>> ) |
| 245 * |
| 246 * A mapping from context source roots to package maps which map package |
| 247 * names to source directories for use in client-side package URI |
| 248 * resolution. |
| 243 */ | 249 */ |
| 244 Future<AnalysisGetLibraryDependenciesResult> sendAnalysisGetLibraryDependencie
s() { | 250 Future<AnalysisGetLibraryDependenciesResult> sendAnalysisGetLibraryDependencie
s() { |
| 245 return server.send("analysis.getLibraryDependencies", null) | 251 return server.send("analysis.getLibraryDependencies", null) |
| 246 .then((result) { | 252 .then((result) { |
| 247 ResponseDecoder decoder = new ResponseDecoder(null); | 253 ResponseDecoder decoder = new ResponseDecoder(null); |
| 248 return new AnalysisGetLibraryDependenciesResult.fromJson(decoder, 'result'
, result); | 254 return new AnalysisGetLibraryDependenciesResult.fromJson(decoder, 'result'
, result); |
| 249 }); | 255 }); |
| 250 } | 256 } |
| 251 | 257 |
| 252 /** | 258 /** |
| (...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1544 case "execution.launchData": | 1550 case "execution.launchData": |
| 1545 expect(params, isExecutionLaunchDataParams); | 1551 expect(params, isExecutionLaunchDataParams); |
| 1546 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); | 1552 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); |
| 1547 break; | 1553 break; |
| 1548 default: | 1554 default: |
| 1549 fail('Unexpected notification: $event'); | 1555 fail('Unexpected notification: $event'); |
| 1550 break; | 1556 break; |
| 1551 } | 1557 } |
| 1552 } | 1558 } |
| 1553 } | 1559 } |
| OLD | NEW |