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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/domain_analysis.dart
diff --git a/pkg/analysis_server/lib/src/domain_analysis.dart b/pkg/analysis_server/lib/src/domain_analysis.dart
index d83c1d31bbe712df4b510ec11156c9e6edef7c9b..f3bb15de86265c9d9b07384e0cc23c7a4a3e7abd 100644
--- a/pkg/analysis_server/lib/src/domain_analysis.dart
+++ b/pkg/analysis_server/lib/src/domain_analysis.dart
@@ -6,6 +6,7 @@ library domain.analysis;
import 'package:analysis_server/src/analysis_server.dart';
import 'package:analysis_server/src/protocol.dart';
+import 'package:analysis_server/src/resource.dart';
/**
* Instances of the class [AnalysisDomainHandler] implement a [RequestHandler]
@@ -200,8 +201,15 @@ class AnalysisDomainHandler implements RequestHandler {
}
Response setAnalysisRoots(Request request) {
- // TODO(scheglov) implement
- return null;
+ // included
+ RequestDatum includedDatum = request.getRequiredParameter(INCLUDED_PARAM);
+ List<String> includedPaths = includedDatum.asStringList();
+ // excluded
+ RequestDatum excludedDatum = request.getRequiredParameter(EXCLUDED_PARAM);
+ List<String> excludedPaths = excludedDatum.asStringList();
+ // continue in server
+ server.setAnalysisRoots(request.id, includedPaths, excludedPaths);
+ return new Response(request.id);
}
Response setPriorityFiles(Request request) {
« 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