OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 * The watch events that the plugin should handle. | 197 * The watch events that the plugin should handle. |
198 */ | 198 */ |
199 Future sendAnalysisHandleWatchEvents(List<WatchEvent> events) async { | 199 Future sendAnalysisHandleWatchEvents(List<WatchEvent> events) async { |
200 var params = new AnalysisHandleWatchEventsParams(events).toJson(); | 200 var params = new AnalysisHandleWatchEventsParams(events).toJson(); |
201 var result = await server.send("analysis.handleWatchEvents", params); | 201 var result = await server.send("analysis.handleWatchEvents", params); |
202 outOfTestExpect(result, isNull); | 202 outOfTestExpect(result, isNull); |
203 return null; | 203 return null; |
204 } | 204 } |
205 | 205 |
206 /** | 206 /** |
207 * Used to force the re-analysis of everything contained in the specified | |
208 * context roots. This should cause all previously computed analysis results | |
209 * to be discarded and recomputed, and should cause all subscribed | |
210 * notifications to be re-sent. | |
211 * | |
212 * Parameters | |
213 * | |
214 * roots: List<FilePath> (optional) | |
215 * | |
216 * A list of the context roots that are to be re-analyzed. | |
217 * | |
218 * If no context roots are provided, then all current context roots should | |
219 * be re-analyzed. | |
220 */ | |
221 Future sendAnalysisReanalyze({List<String> roots}) async { | |
222 var params = new AnalysisReanalyzeParams(roots: roots).toJson(); | |
223 var result = await server.send("analysis.reanalyze", params); | |
224 outOfTestExpect(result, isNull); | |
225 return null; | |
226 } | |
227 | |
228 /** | |
229 * Set the list of context roots that should be analyzed. | 207 * Set the list of context roots that should be analyzed. |
230 * | 208 * |
231 * Parameters | 209 * Parameters |
232 * | 210 * |
233 * roots: List<ContextRoot> | 211 * roots: List<ContextRoot> |
234 * | 212 * |
235 * A list of the context roots that should be analyzed. | 213 * A list of the context roots that should be analyzed. |
236 */ | 214 */ |
237 Future sendAnalysisSetContextRoots(List<ContextRoot> roots) async { | 215 Future sendAnalysisSetContextRoots(List<ContextRoot> roots) async { |
238 var params = new AnalysisSetContextRootsParams(roots).toJson(); | 216 var params = new AnalysisSetContextRootsParams(roots).toJson(); |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 outOfTestExpect(params, isAnalysisOutlineParams); | 774 outOfTestExpect(params, isAnalysisOutlineParams); |
797 _onAnalysisOutline | 775 _onAnalysisOutline |
798 .add(new AnalysisOutlineParams.fromJson(decoder, 'params', params)); | 776 .add(new AnalysisOutlineParams.fromJson(decoder, 'params', params)); |
799 break; | 777 break; |
800 default: | 778 default: |
801 fail('Unexpected notification: $event'); | 779 fail('Unexpected notification: $event'); |
802 break; | 780 break; |
803 } | 781 } |
804 } | 782 } |
805 } | 783 } |
OLD | NEW |