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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 Future<AnalysisGetHoverResult> sendAnalysisGetHover(String file, int offset) { | 231 Future<AnalysisGetHoverResult> sendAnalysisGetHover(String file, int offset) { |
232 var params = new AnalysisGetHoverParams(file, offset).toJson(); | 232 var params = new AnalysisGetHoverParams(file, offset).toJson(); |
233 return server.send("analysis.getHover", params) | 233 return server.send("analysis.getHover", params) |
234 .then((result) { | 234 .then((result) { |
235 ResponseDecoder decoder = new ResponseDecoder(null); | 235 ResponseDecoder decoder = new ResponseDecoder(null); |
236 return new AnalysisGetHoverResult.fromJson(decoder, 'result', result); | 236 return new AnalysisGetHoverResult.fromJson(decoder, 'result', result); |
237 }); | 237 }); |
238 } | 238 } |
239 | 239 |
240 /** | 240 /** |
| 241 * Return the transitive closure of reachable sources for a given file. |
| 242 * |
| 243 * Parameters |
| 244 * |
| 245 * file ( FilePath ) |
| 246 * |
| 247 * The file for which reachable source information is being requested. |
| 248 * |
| 249 * Returns |
| 250 * |
| 251 * sources ( Map<String, List<String>> ) |
| 252 * |
| 253 * A mapping from source URIs to directly reachable source URIs. For |
| 254 * example, a file "foo.dart" that imports "bar.dart" would have the |
| 255 * corresponding mapping { "file:///foo.dart" : ["file:///bar.dart"] }. If |
| 256 * "bar.dart" has further imports (or exports) there will be a mapping from |
| 257 * the URI "file:///bar.dart" to them. To check if a specific URI is |
| 258 * reachable from a given file, clients can check for its presence in the |
| 259 * resulting key set. |
| 260 */ |
| 261 Future<AnalysisGetReachableSourcesResult> sendAnalysisGetReachableSources(Stri
ng file) { |
| 262 var params = new AnalysisGetReachableSourcesParams(file).toJson(); |
| 263 return server.send("analysis.getReachableSources", params) |
| 264 .then((result) { |
| 265 ResponseDecoder decoder = new ResponseDecoder(null); |
| 266 return new AnalysisGetReachableSourcesResult.fromJson(decoder, 'result', r
esult); |
| 267 }); |
| 268 } |
| 269 |
| 270 /** |
241 * Return library dependency information for use in client-side indexing and | 271 * Return library dependency information for use in client-side indexing and |
242 * package URI resolution. | 272 * package URI resolution. |
243 * | 273 * |
244 * Clients that are only using the libraries field should consider using the | 274 * Clients that are only using the libraries field should consider using the |
245 * analyzedFiles notification instead. | 275 * analyzedFiles notification instead. |
246 * | 276 * |
247 * Returns | 277 * Returns |
248 * | 278 * |
249 * libraries ( List<FilePath> ) | 279 * libraries ( List<FilePath> ) |
250 * | 280 * |
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1760 case "execution.launchData": | 1790 case "execution.launchData": |
1761 expect(params, isExecutionLaunchDataParams); | 1791 expect(params, isExecutionLaunchDataParams); |
1762 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); | 1792 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); |
1763 break; | 1793 break; |
1764 default: | 1794 default: |
1765 fail('Unexpected notification: $event'); | 1795 fail('Unexpected notification: $event'); |
1766 break; | 1796 break; |
1767 } | 1797 } |
1768 } | 1798 } |
1769 } | 1799 } |
OLD | NEW |