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