| 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 channel; | 5 library channel; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import 'package:analysis_server/src/protocol.dart'; | 10 import 'protocol.dart'; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * The abstract class [ClientCommunicationChannel] defines the behavior of | 13 * The abstract class [ClientCommunicationChannel] defines the behavior of |
| 14 * objects that allow a client to send [Request]s to an [AnalysisServer] and to | 14 * objects that allow a client to send [Request]s to an [AnalysisServer] and to |
| 15 * receive both [Response]s and [Notification]s. | 15 * receive both [Response]s and [Notification]s. |
| 16 */ | 16 */ |
| 17 abstract class ClientCommunicationChannel { | 17 abstract class ClientCommunicationChannel { |
| 18 /** | 18 /** |
| 19 * The stream of notifications from the server. | 19 * The stream of notifications from the server. |
| 20 */ | 20 */ |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 142 } |
| 143 } | 143 } |
| 144 } | 144 } |
| 145 | 145 |
| 146 @override | 146 @override |
| 147 void close() { | 147 void close() { |
| 148 closed = true; | 148 closed = true; |
| 149 sink.close(); | 149 sink.close(); |
| 150 } | 150 } |
| 151 } | 151 } |
| OLD | NEW |