| 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 /** | 327 /** |
| 328 * Update the content of one or more files. Files that were previously | 328 * Update the content of one or more files. Files that were previously |
| 329 * updated but not included in this update remain unchanged. This effectively | 329 * updated but not included in this update remain unchanged. This effectively |
| 330 * represents an overlay of the filesystem. The files whose content is | 330 * represents an overlay of the filesystem. The files whose content is |
| 331 * overridden are therefore seen by server as being files with the given | 331 * overridden are therefore seen by server as being files with the given |
| 332 * content, even if the files do not exist on the filesystem or if the file | 332 * content, even if the files do not exist on the filesystem or if the file |
| 333 * path represents the path to a directory on the filesystem. | 333 * path represents the path to a directory on the filesystem. |
| 334 * | 334 * |
| 335 * Parameters | 335 * Parameters |
| 336 * | 336 * |
| 337 * files ( Map<FilePath, ContentChange> ) | 337 * files ( Map<FilePath, object> ) |
| 338 * | 338 * |
| 339 * A table mapping the files whose content has changed to a description of | 339 * A table mapping the files whose content has changed to a description of |
| 340 * the content. | 340 * the content change. Each value should be one of the following types: |
| 341 * AddContentOverlay, ChangeContentOverlay, or RemoveContentOverlay. |
| 341 */ | 342 */ |
| 342 Future sendAnalysisUpdateContent(Map<String, Map<String, dynamic>> files, {boo
l checkTypes: true}) { | 343 Future sendAnalysisUpdateContent(Map<String, Map<String, dynamic>> files, {boo
l checkTypes: true}) { |
| 343 Map<String, dynamic> params = {}; | 344 Map<String, dynamic> params = {}; |
| 344 params["files"] = files; | 345 params["files"] = files; |
| 345 if (checkTypes) { | 346 if (checkTypes) { |
| 346 expect(params, isAnalysisUpdateContentParams); | 347 expect(params, isAnalysisUpdateContentParams); |
| 347 } | 348 } |
| 348 return server.send("analysis.updateContent", params) | 349 return server.send("analysis.updateContent", params) |
| 349 .then((result) { | 350 .then((result) { |
| 350 if (checkTypes) { | 351 if (checkTypes) { |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 } | 954 } |
| 954 return server.send("debug.setSubscriptions", params) | 955 return server.send("debug.setSubscriptions", params) |
| 955 .then((result) { | 956 .then((result) { |
| 956 if (checkTypes) { | 957 if (checkTypes) { |
| 957 expect(result, isDebugSetSubscriptionsResult); | 958 expect(result, isDebugSetSubscriptionsResult); |
| 958 } | 959 } |
| 959 return result; | 960 return result; |
| 960 }); | 961 }); |
| 961 } | 962 } |
| 962 } | 963 } |
| OLD | NEW |