| 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 library domain.analysis; | 5 library domain.analysis; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/analysis_server.dart'; | 7 import 'package:analysis_server/src/analysis_server.dart'; |
| 8 import 'package:analysis_server/src/constants.dart'; | 8 import 'package:analysis_server/src/constants.dart'; |
| 9 import 'package:analysis_server/src/protocol.dart'; | 9 import 'package:analysis_server/src/protocol.dart'; |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 try { | 28 try { |
| 29 String requestName = request.method; | 29 String requestName = request.method; |
| 30 if (requestName == METHOD_GET_FIXES) { | 30 if (requestName == METHOD_GET_FIXES) { |
| 31 return getFixes(request); | 31 return getFixes(request); |
| 32 } else if (requestName == METHOD_GET_MINOR_REFACTORINGS) { | 32 } else if (requestName == METHOD_GET_MINOR_REFACTORINGS) { |
| 33 return getMinorRefactorings(request); | 33 return getMinorRefactorings(request); |
| 34 } else if (requestName == METHOD_SET_ANALYSIS_ROOTS) { | 34 } else if (requestName == METHOD_SET_ANALYSIS_ROOTS) { |
| 35 return setAnalysisRoots(request); | 35 return setAnalysisRoots(request); |
| 36 } else if (requestName == METHOD_SET_PRIORITY_FILES) { | 36 } else if (requestName == METHOD_SET_PRIORITY_FILES) { |
| 37 return setPriorityFiles(request); | 37 return setPriorityFiles(request); |
| 38 } else if (requestName == METHOD_SET_SUBSCRIPTIONS) { | 38 } else if (requestName == METHOD_SET_ANALYSIS_SUBSCRIPTIONS) { |
| 39 return setSubscriptions(request); | 39 return setSubscriptions(request); |
| 40 } else if (requestName == METHOD_UPDATE_CONTENT) { | 40 } else if (requestName == METHOD_UPDATE_CONTENT) { |
| 41 return updateContent(request); | 41 return updateContent(request); |
| 42 } else if (requestName == METHOD_UPDATE_OPTIONS) { | 42 } else if (requestName == METHOD_UPDATE_OPTIONS) { |
| 43 return updateOptions(request); | 43 return updateOptions(request); |
| 44 } else if (requestName == METHOD_UPDATE_SDKS) { | 44 } else if (requestName == METHOD_UPDATE_SDKS) { |
| 45 return updateSdks(request); | 45 return updateSdks(request); |
| 46 } | 46 } |
| 47 } on RequestFailure catch (exception) { | 47 } on RequestFailure catch (exception) { |
| 48 return exception.response; | 48 return exception.response; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 /** | 129 /** |
| 130 * A description of the change to the content of a file. | 130 * A description of the change to the content of a file. |
| 131 */ | 131 */ |
| 132 class ContentChange { | 132 class ContentChange { |
| 133 String content; | 133 String content; |
| 134 int offset; | 134 int offset; |
| 135 int oldLength; | 135 int oldLength; |
| 136 int newLength; | 136 int newLength; |
| 137 } | 137 } |
| OLD | NEW |