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

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

Issue 297153002: Implementation of 'Server Domain' in dart analysis server. (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
Index: pkg/analysis_server/lib/src/analysis_server.dart
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart
index af8c32eb0f8222ccb7850c817e7e32e3c3322286..cf43cd591d9766ab2fa125bff38d400370167ca7 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -83,6 +83,11 @@ class AnalysisServer {
final List<AnalysisContext> contextWorkQueue = new List<AnalysisContext>();
/**
+ * A set of the [ServerService]s to send notifications for.
+ */
+ Set<ServerService> serverServices = new Set<ServerService>();
+
+ /**
* Initialize a newly created server to receive requests from and send
* responses to the given [channel].
*/
@@ -241,3 +246,13 @@ class AnalysisServer {
});
}
}
+
+
+/// An enumeration of the services provided by the server domain.
Brian Wilkerson 2014/05/24 15:49:11 I should have mentioned that there are lots of pla
scheglov 2014/05/24 16:07:26 Fixed here and in protocol.dart file. As far as I
+class ServerService extends Enum2<ServerService> {
+ static const ServerService STATUS = const ServerService('STATUS', 0);
+
+ static const List<ServerService> VALUES = const [STATUS];
+
+ const ServerService(String name, int ordinal) : super(name, ordinal);
+}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/domain_server.dart » ('j') | pkg/analysis_server/lib/src/protocol.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698