| 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/src/protocol.dart'; |
| 11 import 'package:analyzer/instrumentation/instrumentation.dart'; | |
| 12 import 'package:analyzer/src/util/utilities_timing.dart'; | 11 import 'package:analyzer/src/util/utilities_timing.dart'; |
| 13 | 12 |
| 14 /** | 13 /** |
| 15 * Instances of the class [ChannelChunkSink] uses a [Converter] to translate | 14 * Instances of the class [ChannelChunkSink] uses a [Converter] to translate |
| 16 * chunks. | 15 * chunks. |
| 17 */ | 16 */ |
| 18 class ChannelChunkSink<S, T> extends ChunkedConversionSink<S> { | 17 class ChannelChunkSink<S, T> extends ChunkedConversionSink<S> { |
| 19 /** | 18 /** |
| 20 * The converter used to translate chunks. | 19 * The converter used to translate chunks. |
| 21 */ | 20 */ |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 /** | 156 /** |
| 158 * Send the given [notification] to the client. | 157 * Send the given [notification] to the client. |
| 159 */ | 158 */ |
| 160 void sendNotification(Notification notification); | 159 void sendNotification(Notification notification); |
| 161 | 160 |
| 162 /** | 161 /** |
| 163 * Send the given [response] to the client. | 162 * Send the given [response] to the client. |
| 164 */ | 163 */ |
| 165 void sendResponse(Response response); | 164 void sendResponse(Response response); |
| 166 } | 165 } |
| OLD | NEW |