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 import 'package:analyzer/file_system/file_system.dart'; | 5 import 'package:analyzer/file_system/file_system.dart'; |
6 import 'package:analyzer/src/dart/analysis/byte_store.dart'; | 6 import 'package:analyzer/src/dart/analysis/byte_store.dart'; |
7 import 'package:analyzer/src/dart/analysis/driver.dart' | 7 import 'package:analyzer/src/dart/analysis/driver.dart' |
8 show AnalysisDriverScheduler, PerformanceLog; | 8 show AnalysisDriverScheduler, PerformanceLog; |
9 import 'package:analyzer/src/dart/analysis/file_byte_store.dart'; | 9 import 'package:analyzer/src/dart/analysis/file_byte_store.dart'; |
10 import 'package:analyzer/src/dart/analysis/file_state.dart'; | 10 import 'package:analyzer/src/dart/analysis/file_state.dart'; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 */ | 220 */ |
221 CompletionGetSuggestionsResult handleCompletionGetSuggestions( | 221 CompletionGetSuggestionsResult handleCompletionGetSuggestions( |
222 Map<String, Object> parameters) => | 222 Map<String, Object> parameters) => |
223 new CompletionGetSuggestionsResult( | 223 new CompletionGetSuggestionsResult( |
224 -1, -1, const <CompletionSuggestion>[]); | 224 -1, -1, const <CompletionSuggestion>[]); |
225 | 225 |
226 /** | 226 /** |
227 * Handle an 'edit.getAssists' request. | 227 * Handle an 'edit.getAssists' request. |
228 */ | 228 */ |
229 EditGetAssistsResult handleEditGetAssists(Map<String, Object> parameters) => | 229 EditGetAssistsResult handleEditGetAssists(Map<String, Object> parameters) => |
230 new EditGetAssistsResult(const <SourceChange>[]); | 230 new EditGetAssistsResult(const <PrioritizedSourceChange>[]); |
231 | 231 |
232 /** | 232 /** |
233 * Handle an 'edit.getAvailableRefactorings' request. Subclasses that override | 233 * Handle an 'edit.getAvailableRefactorings' request. Subclasses that override |
234 * this method in order to participate in refactorings must also override the | 234 * this method in order to participate in refactorings must also override the |
235 * method [handleEditGetRefactoring]. | 235 * method [handleEditGetRefactoring]. |
236 */ | 236 */ |
237 EditGetAvailableRefactoringsResult handleEditGetAvailableRefactorings( | 237 EditGetAvailableRefactoringsResult handleEditGetAvailableRefactorings( |
238 Map<String, Object> parameters) => | 238 Map<String, Object> parameters) => |
239 new EditGetAvailableRefactoringsResult(const <RefactoringKind>[]); | 239 new EditGetAvailableRefactoringsResult(const <RefactoringKind>[]); |
240 | 240 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 response = new Response(id, | 401 response = new Response(id, |
402 error: new RequestError( | 402 error: new RequestError( |
403 RequestErrorCode.PLUGIN_ERROR, exception.toString(), | 403 RequestErrorCode.PLUGIN_ERROR, exception.toString(), |
404 stackTrace: stackTrace.toString())); | 404 stackTrace: stackTrace.toString())); |
405 } | 405 } |
406 if (response != null) { | 406 if (response != null) { |
407 _channel.sendResponse(response); | 407 _channel.sendResponse(response); |
408 } | 408 } |
409 } | 409 } |
410 } | 410 } |
OLD | NEW |