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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 * Parameters | 262 * Parameters |
263 * | 263 * |
264 * included ( List<FilePath> ) | 264 * included ( List<FilePath> ) |
265 * | 265 * |
266 * A list of the files and directories that should be analyzed. | 266 * A list of the files and directories that should be analyzed. |
267 * | 267 * |
268 * excluded ( List<FilePath> ) | 268 * excluded ( List<FilePath> ) |
269 * | 269 * |
270 * A list of the files and directories within the included directories that | 270 * A list of the files and directories within the included directories that |
271 * should not be analyzed. | 271 * should not be analyzed. |
| 272 * |
| 273 * packageRoots ( optional Map<FilePath, FilePath> ) |
| 274 * |
| 275 * A mapping from source directories to target directories that should |
| 276 * override the normal package: URI resolution mechanism. The analyzer will |
| 277 * behave as though each source directory in the map contains a special |
| 278 * pubspec.yaml file which resolves any package: URI to the corresponding |
| 279 * path within the target directory. The effect is the same as specifying |
| 280 * the target directory as a "--package_root" parameter to the Dart VM when |
| 281 * executing any Dart file inside the source directory. |
| 282 * |
| 283 * If this field is absent, or the empty map is specified, then all |
| 284 * package: URI's are resolved the normal pubspec.yaml mechanism. |
272 */ | 285 */ |
273 Future sendAnalysisSetAnalysisRoots(List<String> included, List<String> exclud
ed) { | 286 Future sendAnalysisSetAnalysisRoots(List<String> included, List<String> exclud
ed, {Map<String, String> packageRoots}) { |
274 var params = new AnalysisSetAnalysisRootsParams(included, excluded).toJson()
; | 287 var params = new AnalysisSetAnalysisRootsParams(included, excluded, packageR
oots: packageRoots).toJson(); |
275 return server.send("analysis.setAnalysisRoots", params) | 288 return server.send("analysis.setAnalysisRoots", params) |
276 .then((result) { | 289 .then((result) { |
277 expect(result, isNull); | 290 expect(result, isNull); |
278 return null; | 291 return null; |
279 }); | 292 }); |
280 } | 293 } |
281 | 294 |
282 /** | 295 /** |
283 * Set the priority files to the files in the given list. A priority file is | 296 * Set the priority files to the files in the given list. A priority file is |
284 * a file that is given priority when scheduling which analysis work to do | 297 * a file that is given priority when scheduling which analysis work to do |
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 case "execution.launchData": | 1355 case "execution.launchData": |
1343 expect(params, isExecutionLaunchDataParams); | 1356 expect(params, isExecutionLaunchDataParams); |
1344 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); | 1357 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); |
1345 break; | 1358 break; |
1346 default: | 1359 default: |
1347 fail('Unexpected notification: $event'); | 1360 fail('Unexpected notification: $event'); |
1348 break; | 1361 break; |
1349 } | 1362 } |
1350 } | 1363 } |
1351 } | 1364 } |
OLD | NEW |