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

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

Issue 300023004: Partial implementation of the 'setAnalysisRoots' API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 6 years, 6 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 'package:analysis_server/src/analysis_server.dart'; 7 import 'package:analysis_server/src/analysis_server.dart';
8 import 'package:analysis_server/src/protocol.dart'; 8 import 'package:analysis_server/src/protocol.dart';
9 import 'package:analysis_server/src/resource.dart';
9 10
10 /** 11 /**
11 * Instances of the class [AnalysisDomainHandler] implement a [RequestHandler] 12 * Instances of the class [AnalysisDomainHandler] implement a [RequestHandler]
12 * that handles requests in the `analysis` domain. 13 * that handles requests in the `analysis` domain.
13 */ 14 */
14 class AnalysisDomainHandler implements RequestHandler { 15 class AnalysisDomainHandler implements RequestHandler {
15 /** 16 /**
16 * The name of the `analysis.getFixes` request. 17 * The name of the `analysis.getFixes` request.
17 */ 18 */
18 static const String GET_FIXES_METHOD = 'analysis.getFixes'; 19 static const String GET_FIXES_METHOD = 'analysis.getFixes';
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // TODO(scheglov) implement 194 // TODO(scheglov) implement
194 return null; 195 return null;
195 } 196 }
196 197
197 Response getMinorRefactorings(Request request) { 198 Response getMinorRefactorings(Request request) {
198 // TODO(scheglov) implement 199 // TODO(scheglov) implement
199 return null; 200 return null;
200 } 201 }
201 202
202 Response setAnalysisRoots(Request request) { 203 Response setAnalysisRoots(Request request) {
203 // TODO(scheglov) implement 204 // included
204 return null; 205 RequestDatum includedDatum = request.getRequiredParameter(INCLUDED_PARAM);
206 List<String> includedPaths = includedDatum.asStringList();
207 // excluded
208 RequestDatum excludedDatum = request.getRequiredParameter(EXCLUDED_PARAM);
209 List<String> excludedPaths = excludedDatum.asStringList();
210 // continue in server
211 server.setAnalysisRoots(request.id, includedPaths, excludedPaths);
212 return new Response(request.id);
205 } 213 }
206 214
207 Response setPriorityFiles(Request request) { 215 Response setPriorityFiles(Request request) {
208 // TODO(scheglov) implement 216 // TODO(scheglov) implement
209 return null; 217 return null;
210 } 218 }
211 219
212 Response setSubscriptions(Request request) { 220 Response setSubscriptions(Request request) {
213 // TODO(scheglov) implement 221 // TODO(scheglov) implement
214 return null; 222 return null;
215 } 223 }
216 224
217 Response updateContent(Request request) { 225 Response updateContent(Request request) {
218 // TODO(scheglov) implement 226 // TODO(scheglov) implement
219 return null; 227 return null;
220 } 228 }
221 229
222 Response updateOptions(Request request) { 230 Response updateOptions(Request request) {
223 // TODO(scheglov) implement 231 // TODO(scheglov) implement
224 return null; 232 return null;
225 } 233 }
226 234
227 Response updateSdks(Request request) { 235 Response updateSdks(Request request) {
228 // TODO(scheglov) implement 236 // TODO(scheglov) implement
229 return null; 237 return null;
230 } 238 }
231 } 239 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/lib/src/domain_context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698