| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 * content, even if the files do not exist on the filesystem or if the file | 461 * content, even if the files do not exist on the filesystem or if the file |
| 462 * path represents the path to a directory on the filesystem. | 462 * path represents the path to a directory on the filesystem. |
| 463 * | 463 * |
| 464 * Parameters | 464 * Parameters |
| 465 * | 465 * |
| 466 * files ( Map<FilePath, AddContentOverlay | ChangeContentOverlay | | 466 * files ( Map<FilePath, AddContentOverlay | ChangeContentOverlay | |
| 467 * RemoveContentOverlay> ) | 467 * RemoveContentOverlay> ) |
| 468 * | 468 * |
| 469 * A table mapping the files whose content has changed to a description of | 469 * A table mapping the files whose content has changed to a description of |
| 470 * the content change. | 470 * the content change. |
| 471 * |
| 472 * Returns |
| 471 */ | 473 */ |
| 472 Future sendAnalysisUpdateContent(Map<String, dynamic> files) { | 474 Future<AnalysisUpdateContentResult> sendAnalysisUpdateContent(Map<String, dyna
mic> files) { |
| 473 var params = new AnalysisUpdateContentParams(files).toJson(); | 475 var params = new AnalysisUpdateContentParams(files).toJson(); |
| 474 return server.send("analysis.updateContent", params) | 476 return server.send("analysis.updateContent", params) |
| 475 .then((result) { | 477 .then((result) { |
| 476 expect(result, isNull); | 478 ResponseDecoder decoder = new ResponseDecoder(null); |
| 477 return null; | 479 return new AnalysisUpdateContentResult.fromJson(decoder, 'result', result)
; |
| 478 }); | 480 }); |
| 479 } | 481 } |
| 480 | 482 |
| 481 /** | 483 /** |
| 482 * Update the options controlling analysis based on the given set of options. | 484 * Update the options controlling analysis based on the given set of options. |
| 483 * Any options that are not included in the analysis options will not be | 485 * Any options that are not included in the analysis options will not be |
| 484 * changed. If there are options in the analysis options that are not valid, | 486 * changed. If there are options in the analysis options that are not valid, |
| 485 * they will be silently ignored. | 487 * they will be silently ignored. |
| 486 * | 488 * |
| 487 * Parameters | 489 * Parameters |
| (...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1542 case "execution.launchData": | 1544 case "execution.launchData": |
| 1543 expect(params, isExecutionLaunchDataParams); | 1545 expect(params, isExecutionLaunchDataParams); |
| 1544 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); | 1546 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); |
| 1545 break; | 1547 break; |
| 1546 default: | 1548 default: |
| 1547 fail('Unexpected notification: $event'); | 1549 fail('Unexpected notification: $event'); |
| 1548 break; | 1550 break; |
| 1549 } | 1551 } |
| 1550 } | 1552 } |
| 1551 } | 1553 } |
| OLD | NEW |