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

Unified Diff: pkg/analysis_server/lib/src/analysis_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 | « no previous file | pkg/analysis_server/lib/src/computer/error.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 895d16107a62e22467d43987c5e382f8dcef1f35..53876ca81fb0ff161c929cbe1c7b96508599f4c5 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -18,6 +18,8 @@ import 'package:analysis_server/src/operation/operation.dart';
import 'package:analysis_server/src/operation/operation_queue.dart';
import 'package:analysis_server/src/package_map_provider.dart';
import 'package:analysis_server/src/protocol.dart';
+import 'package:analysis_server/src/protocol2.dart' show AnalysisService,
+ ServerService;
import 'package:analyzer/source/package_map_resolver.dart';
import 'package:analyzer/src/generated/ast.dart';
import 'package:analyzer/src/generated/engine.dart';
@@ -813,32 +815,4 @@ class AnalysisServer {
}
-/**
- * An enumeration of the services provided by the analysis domain.
- */
-class AnalysisService extends Enum2<AnalysisService> {
- static const HIGHLIGHTS = const AnalysisService('HIGHLIGHTS', 1);
- static const NAVIGATION = const AnalysisService('NAVIGATION', 2);
- static const OCCURRENCES = const AnalysisService('OCCURRENCES', 3);
- static const OUTLINE = const AnalysisService('OUTLINE', 4);
- static const OVERRIDES = const AnalysisService('OVERRIDES', 5);
-
- static const List<AnalysisService> VALUES =
- const [HIGHLIGHTS, NAVIGATION, OCCURRENCES, OUTLINE, OVERRIDES];
-
- const AnalysisService(String name, int ordinal) : super(name, ordinal);
-}
-
-
typedef void OptionUpdater(AnalysisOptionsImpl options);
-
-/**
- * An enumeration of the services provided by the server domain.
- */
-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/computer/error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698