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

Unified Diff: pkg/analysis_server/lib/src/domain_server.dart

Issue 486003003: Start using code-generated protocol classes in analysis 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/domain_analysis.dart ('k') | pkg/analysis_server/lib/src/edit/edit_domain.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_server.dart
diff --git a/pkg/analysis_server/lib/src/domain_server.dart b/pkg/analysis_server/lib/src/domain_server.dart
index 2405c972562b14b2bea9956eb5902a413a2a9473..7fc1e2d9bfa68fe094a3171ee6cbe54276f948a3 100644
--- a/pkg/analysis_server/lib/src/domain_server.dart
+++ b/pkg/analysis_server/lib/src/domain_server.dart
@@ -7,6 +7,7 @@ library domain.server;
import 'package:analysis_server/src/analysis_server.dart';
import 'package:analysis_server/src/constants.dart';
import 'package:analysis_server/src/protocol.dart';
+import 'package:analysis_server/src/protocol2.dart';
/**
* Instances of the class [ServerDomainHandler] implement a [RequestHandler]
@@ -55,8 +56,8 @@ class ServerDomainHandler implements RequestHandler {
* All previous subscriptions are replaced by the given set of subscriptions.
*/
Response setSubscriptions(Request request) {
- RequestDatum subDatum = request.getRequiredParameter(SUBSCRIPTIONS);
- server.serverServices = subDatum.asEnumSet(ServerService.VALUES);
+ server.serverServices =
+ new ServerSetSubscriptionsParams.fromRequest(request).subscriptions.toSet();
return new Response(request.id);
}
« no previous file with comments | « pkg/analysis_server/lib/src/domain_analysis.dart ('k') | pkg/analysis_server/lib/src/edit/edit_domain.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698