| 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 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/analysis_server.dart'; | 9 import 'package:analysis_server/src/analysis_server.dart'; |
| 10 import 'package:analysis_server/src/computer/computer_hover.dart'; | 10 import 'package:analysis_server/src/computer/computer_hover.dart'; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 params.excluded, | 134 params.excluded, |
| 135 params.packageRoots == null ? {} : params.packageRoots); | 135 params.packageRoots == null ? {} : params.packageRoots); |
| 136 return new AnalysisSetAnalysisRootsResult().toResponse(request.id); | 136 return new AnalysisSetAnalysisRootsResult().toResponse(request.id); |
| 137 } | 137 } |
| 138 | 138 |
| 139 /** | 139 /** |
| 140 * Implement the 'analysis.setPriorityFiles' request. | 140 * Implement the 'analysis.setPriorityFiles' request. |
| 141 */ | 141 */ |
| 142 Response setPriorityFiles(Request request) { | 142 Response setPriorityFiles(Request request) { |
| 143 var params = new AnalysisSetPriorityFilesParams.fromRequest(request); | 143 var params = new AnalysisSetPriorityFilesParams.fromRequest(request); |
| 144 server.setPriorityFiles(request, params.files); | 144 server.setPriorityFiles(request.id, params.files); |
| 145 return new AnalysisSetPriorityFilesResult().toResponse(request.id); | 145 return new AnalysisSetPriorityFilesResult().toResponse(request.id); |
| 146 } | 146 } |
| 147 | 147 |
| 148 /** | 148 /** |
| 149 * Implement the 'analysis.setSubscriptions' request. | 149 * Implement the 'analysis.setSubscriptions' request. |
| 150 */ | 150 */ |
| 151 Response setSubscriptions(Request request) { | 151 Response setSubscriptions(Request request) { |
| 152 var params = new AnalysisSetSubscriptionsParams.fromRequest(request); | 152 var params = new AnalysisSetSubscriptionsParams.fromRequest(request); |
| 153 // parse subscriptions | 153 // parse subscriptions |
| 154 Map<AnalysisService, Set<String>> subMap = mapMap( | 154 Map<AnalysisService, Set<String>> subMap = mapMap( |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 } | 208 } |
| 209 if (newOptions.generateHints != null) { | 209 if (newOptions.generateHints != null) { |
| 210 updaters.add((engine.AnalysisOptionsImpl options) { | 210 updaters.add((engine.AnalysisOptionsImpl options) { |
| 211 options.hint = newOptions.generateHints; | 211 options.hint = newOptions.generateHints; |
| 212 }); | 212 }); |
| 213 } | 213 } |
| 214 server.updateOptions(updaters); | 214 server.updateOptions(updaters); |
| 215 return new AnalysisUpdateOptionsResult().toResponse(request.id); | 215 return new AnalysisUpdateOptionsResult().toResponse(request.id); |
| 216 } | 216 } |
| 217 } | 217 } |
| OLD | NEW |