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; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:convert'; | 6 import 'dart:convert'; |
9 | 7 |
10 import 'package:analysis_server/protocol/protocol.dart'; | 8 import 'package:analysis_server/protocol/protocol.dart'; |
11 | 9 |
12 /** | 10 /** |
13 * Instances of the class [ChannelChunkSink] uses a [Converter] to translate | 11 * Instances of the class [ChannelChunkSink] uses a [Converter] to translate |
14 * chunks. | 12 * chunks. |
15 */ | 13 */ |
16 class ChannelChunkSink<S, T> extends ChunkedConversionSink<S> { | 14 class ChannelChunkSink<S, T> extends ChunkedConversionSink<S> { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 /** | 141 /** |
144 * Send the given [notification] to the client. | 142 * Send the given [notification] to the client. |
145 */ | 143 */ |
146 void sendNotification(Notification notification); | 144 void sendNotification(Notification notification); |
147 | 145 |
148 /** | 146 /** |
149 * Send the given [response] to the client. | 147 * Send the given [response] to the client. |
150 */ | 148 */ |
151 void sendResponse(Response response); | 149 void sendResponse(Response response); |
152 } | 150 } |
OLD | NEW |