| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 /** | 29 /** |
| 30 * The name of the parameter whose value is a source. | 30 * The name of the parameter whose value is a source. |
| 31 */ | 31 */ |
| 32 static const String SOURCE_PARAM = 'source'; | 32 static const String SOURCE_PARAM = 'source'; |
| 33 | 33 |
| 34 /** | 34 /** |
| 35 * The channel from which requests are received and to which responses should | 35 * The channel from which requests are received and to which responses should |
| 36 * be sent. | 36 * be sent. |
| 37 */ | 37 */ |
| 38 final CommunicationChannel channel; | 38 final ServerCommunicationChannel channel; |
| 39 | 39 |
| 40 /** | 40 /** |
| 41 * A flag indicating whether the server is running. | 41 * A flag indicating whether the server is running. |
| 42 */ | 42 */ |
| 43 bool running; | 43 bool running; |
| 44 | 44 |
| 45 /** | 45 /** |
| 46 * A list of the request handlers used to handle the requests sent to this | 46 * A list of the request handlers used to handle the requests sent to this |
| 47 * server. | 47 * server. |
| 48 */ | 48 */ |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 | 170 |
| 171 /** | 171 /** |
| 172 * Send the given [notification] to the client. | 172 * Send the given [notification] to the client. |
| 173 */ | 173 */ |
| 174 void sendNotification(Notification notification) { | 174 void sendNotification(Notification notification) { |
| 175 channel.sendNotification(notification); | 175 channel.sendNotification(notification); |
| 176 } | 176 } |
| 177 } | 177 } |
| OLD | NEW |