Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 } |
| OLD | NEW |