| 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'; |
| 10 import 'package:analysis_server/src/channel.dart'; |
| 11 import 'package:analysis_server/src/protocol.dart'; |
| 9 import 'package:analyzer/src/generated/engine.dart'; | 12 import 'package:analyzer/src/generated/engine.dart'; |
| 10 | 13 |
| 11 import 'analysis_logger.dart'; | |
| 12 import 'channel.dart'; | |
| 13 import 'protocol.dart'; | |
| 14 | |
| 15 /** | 14 /** |
| 16 * Instances of the class [AnalysisServer] implement a server that listens on a | 15 * Instances of the class [AnalysisServer] implement a server that listens on a |
| 17 * [CommunicationChannel] for analysis requests and process them. | 16 * [CommunicationChannel] for analysis requests and process them. |
| 18 */ | 17 */ |
| 19 class AnalysisServer { | 18 class AnalysisServer { |
| 20 /** | 19 /** |
| 21 * The name of the notification of new errors associated with a source. | 20 * The name of the notification of new errors associated with a source. |
| 22 */ | 21 */ |
| 23 static const String ERROR_NOTIFICATION_NAME = 'context.errors'; | 22 static const String ERROR_NOTIFICATION_NAME = 'context.errors'; |
| 24 | 23 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 } | 168 } |
| 170 } | 169 } |
| 171 | 170 |
| 172 /** | 171 /** |
| 173 * Send the given [notification] to the client. | 172 * Send the given [notification] to the client. |
| 174 */ | 173 */ |
| 175 void sendNotification(Notification notification) { | 174 void sendNotification(Notification notification) { |
| 176 channel.sendNotification(notification); | 175 channel.sendNotification(notification); |
| 177 } | 176 } |
| 178 } | 177 } |
| OLD | NEW |