Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: pkg/analysis_server/lib/src/domain_analysis.dart

Issue 436423002: Remove 'analysis.updateSdks' from server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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:collection'; 7 import 'dart:collection';
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } else if (requestName == ANALYSIS_SET_ANALYSIS_ROOTS) { 101 } else if (requestName == ANALYSIS_SET_ANALYSIS_ROOTS) {
102 return setAnalysisRoots(request); 102 return setAnalysisRoots(request);
103 } else if (requestName == ANALYSIS_SET_PRIORITY_FILES) { 103 } else if (requestName == ANALYSIS_SET_PRIORITY_FILES) {
104 return setPriorityFiles(request); 104 return setPriorityFiles(request);
105 } else if (requestName == ANALYSIS_SET_SUBSCRIPTIONS) { 105 } else if (requestName == ANALYSIS_SET_SUBSCRIPTIONS) {
106 return setSubscriptions(request); 106 return setSubscriptions(request);
107 } else if (requestName == ANALYSIS_UPDATE_CONTENT) { 107 } else if (requestName == ANALYSIS_UPDATE_CONTENT) {
108 return updateContent(request); 108 return updateContent(request);
109 } else if (requestName == ANALYSIS_UPDATE_OPTIONS) { 109 } else if (requestName == ANALYSIS_UPDATE_OPTIONS) {
110 return updateOptions(request); 110 return updateOptions(request);
111 } else if (requestName == ANALYSIS_UPDATE_SDKS) {
112 return updateSdks(request);
113 } 111 }
114 } on RequestFailure catch (exception) { 112 } on RequestFailure catch (exception) {
115 return exception.response; 113 return exception.response;
116 } 114 }
117 return null; 115 return null;
118 } 116 }
119 117
120 /** 118 /**
121 * Implement the 'analysis.setAnalysisRoots' request. 119 * Implement the 'analysis.setAnalysisRoots' request.
122 */ 120 */
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 options.hint = optionValue; 233 options.hint = optionValue;
236 }); 234 });
237 } else { 235 } else {
238 throw new RequestFailure( 236 throw new RequestFailure(
239 new Response.unknownOptionName(request, optionName)); 237 new Response.unknownOptionName(request, optionName));
240 } 238 }
241 }); 239 });
242 server.updateOptions(updaters); 240 server.updateOptions(updaters);
243 return new Response(request.id); 241 return new Response(request.id);
244 } 242 }
245
246 /**
247 * Implement the 'analysis.updateSdks' request.
248 */
249 Response updateSdks(Request request) {
250 // added
251 RequestDatum addedDatum = request.getRequiredParameter(ADDED);
252 List<String> added = addedDatum.asStringList();
253 // removed
254 RequestDatum removedDatum = request.getRequiredParameter(REMOVED);
255 List<String> removed = removedDatum.asStringList();
256 // default
257 RequestDatum defaultDatum = request.getRequiredParameter(DEFAULT);
258 String defaultSdk = defaultDatum.asString();
259 // TODO(scheglov) implement
260 return null;
261 }
262 } 243 }
263 244
264 245
265 /** 246 /**
266 * A description of the change to the content of a file. 247 * A description of the change to the content of a file.
267 */ 248 */
268 class ContentChange { 249 class ContentChange {
269 String content; 250 String content;
270 int offset; 251 int offset;
271 int oldLength; 252 int oldLength;
272 int newLength; 253 int newLength;
273 } 254 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/constants.dart ('k') | pkg/analysis_server/test/domain_analysis_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698