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

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

Issue 302503002: API and stubs for the 'analysis' domain. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/domain_analysis.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 analysis.server; 5 library analysis.server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/analysis_logger.dart'; 9 import 'package:analysis_server/src/analysis_logger.dart';
10 import 'package:analysis_server/src/channel.dart'; 10 import 'package:analysis_server/src/channel.dart';
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 void _scheduleTask() { 243 void _scheduleTask() {
244 new Future(performTask).catchError((ex, st) { 244 new Future(performTask).catchError((ex, st) {
245 AnalysisEngine.instance.logger.logError("${ex}\n${st}"); 245 AnalysisEngine.instance.logger.logError("${ex}\n${st}");
246 }); 246 });
247 } 247 }
248 } 248 }
249 249
250 250
251 /** 251 /**
252 * An enumeration of the services provided by the analysis domain.
253 */
254 class AnalysisService extends Enum2<ServerService> {
Brian Wilkerson 2014/05/25 14:51:32 "ServerService" --> "AnalysisService" everywhere i
scheglov 2014/05/25 15:23:17 Oops... Fixed.
255 static const ServerService ERRORS = const ServerService('ERRORS', 0);
256 static const ServerService HIGHLIGHTS = const ServerService('HIGHLIGHTS', 1);
257 static const ServerService NAVIGATION = const ServerService('NAVIGATION', 2);
258 static const ServerService OUTLINE = const ServerService('OUTLINE', 3);
259
260 static const List<ServerService> VALUES =
261 const [ERRORS, HIGHLIGHTS, NAVIGATION, OUTLINE];
262
263 const AnalysisService(String name, int ordinal) : super(name, ordinal);
264 }
265
266
267 /**
252 * An enumeration of the services provided by the server domain. 268 * An enumeration of the services provided by the server domain.
253 */ 269 */
254 class ServerService extends Enum2<ServerService> { 270 class ServerService extends Enum2<ServerService> {
255 static const ServerService STATUS = const ServerService('STATUS', 0); 271 static const ServerService STATUS = const ServerService('STATUS', 0);
256 272
257 static const List<ServerService> VALUES = const [STATUS]; 273 static const List<ServerService> VALUES = const [STATUS];
258 274
259 const ServerService(String name, int ordinal) : super(name, ordinal); 275 const ServerService(String name, int ordinal) : super(name, ordinal);
260 } 276 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/domain_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698