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 'package:analysis_server/plugin/protocol/protocol.dart'; |
11 | 11 |
12 /** | 12 /** |
13 * Instances of the class [ChannelChunkSink] uses a [Converter] to translate | 13 * Instances of the class [ChannelChunkSink] uses a [Converter] to translate |
14 * chunks. | 14 * chunks. |
15 */ | 15 */ |
16 class ChannelChunkSink<S, T> extends ChunkedConversionSink<S> { | 16 class ChannelChunkSink<S, T> extends ChunkedConversionSink<S> { |
17 /** | 17 /** |
18 * The converter used to translate chunks. | 18 * The converter used to translate chunks. |
19 */ | 19 */ |
20 final Converter<S, T> converter; | 20 final Converter<S, T> converter; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 /** | 143 /** |
144 * Send the given [notification] to the client. | 144 * Send the given [notification] to the client. |
145 */ | 145 */ |
146 void sendNotification(Notification notification); | 146 void sendNotification(Notification notification); |
147 | 147 |
148 /** | 148 /** |
149 * Send the given [response] to the client. | 149 * Send the given [response] to the client. |
150 */ | 150 */ |
151 void sendResponse(Response response); | 151 void sendResponse(Response response); |
152 } | 152 } |
OLD | NEW |