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/spec/generate_files". | 7 // "pkg/analysis_server/spec/generate_files". |
8 | 8 |
9 /** | 9 /** |
10 * Convenience methods for running integration tests | 10 * Convenience methods for running integration tests |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 /** | 395 /** |
396 * Update the content of one or more files. Files that were previously | 396 * Update the content of one or more files. Files that were previously |
397 * updated but not included in this update remain unchanged. This effectively | 397 * updated but not included in this update remain unchanged. This effectively |
398 * represents an overlay of the filesystem. The files whose content is | 398 * represents an overlay of the filesystem. The files whose content is |
399 * overridden are therefore seen by server as being files with the given | 399 * overridden are therefore seen by server as being files with the given |
400 * content, even if the files do not exist on the filesystem or if the file | 400 * content, even if the files do not exist on the filesystem or if the file |
401 * path represents the path to a directory on the filesystem. | 401 * path represents the path to a directory on the filesystem. |
402 * | 402 * |
403 * Parameters | 403 * Parameters |
404 * | 404 * |
405 * files ( Map<FilePath, object> ) | 405 * files ( Map<FilePath, AddContentOverlay | ChangeContentOverlay | |
| 406 * RemoveContentOverlay> ) |
406 * | 407 * |
407 * A table mapping the files whose content has changed to a description of | 408 * A table mapping the files whose content has changed to a description of |
408 * the content change. Each value should be one of the following types: | 409 * the content change. |
409 * AddContentOverlay, ChangeContentOverlay, or RemoveContentOverlay. | |
410 */ | 410 */ |
411 Future sendAnalysisUpdateContent(Map<String, Map<String, dynamic>> files, {boo
l checkTypes: true}) { | 411 Future sendAnalysisUpdateContent(Map<String, Object> files, {bool checkTypes:
true}) { |
412 Map<String, dynamic> params = {}; | 412 Map<String, dynamic> params = {}; |
413 params["files"] = files; | 413 params["files"] = files; |
414 if (checkTypes) { | 414 if (checkTypes) { |
415 expect(params, isAnalysisUpdateContentParams); | 415 expect(params, isAnalysisUpdateContentParams); |
416 } | 416 } |
417 return server.send("analysis.updateContent", params) | 417 return server.send("analysis.updateContent", params) |
418 .then((result) { | 418 .then((result) { |
419 if (checkTypes) { | 419 if (checkTypes) { |
420 expect(result, isAnalysisUpdateContentResult); | 420 expect(result, isAnalysisUpdateContentResult); |
421 } | 421 } |
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1441 case "debug.launchData": | 1441 case "debug.launchData": |
1442 expect(params, isDebugLaunchDataParams); | 1442 expect(params, isDebugLaunchDataParams); |
1443 _onDebugLaunchData.add(params); | 1443 _onDebugLaunchData.add(params); |
1444 break; | 1444 break; |
1445 default: | 1445 default: |
1446 fail('Unexpected notification: $event'); | 1446 fail('Unexpected notification: $event'); |
1447 break; | 1447 break; |
1448 } | 1448 } |
1449 } | 1449 } |
1450 } | 1450 } |
OLD | NEW |