OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 server.operation; | 5 library server.operation; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 9 import 'package:analysis_server/protocol/protocol_generated.dart'; |
10 import 'package:logging/logging.dart'; | 10 import 'package:logging/logging.dart'; |
11 | 11 |
12 import 'driver.dart'; | 12 import 'driver.dart'; |
13 import 'input_converter.dart'; | 13 import 'input_converter.dart'; |
14 | 14 |
15 /** | 15 /** |
16 * A [CompletionRequestOperation] tracks response time along with | 16 * A [CompletionRequestOperation] tracks response time along with |
17 * the first and last completion notifications. | 17 * the first and last completion notifications. |
18 */ | 18 */ |
19 class CompletionRequestOperation extends RequestOperation { | 19 class CompletionRequestOperation extends RequestOperation { |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 subscription.cancel(); | 229 subscription.cancel(); |
230 timer.cancel(); | 230 timer.cancel(); |
231 String message = 'gave up waiting for analysis to complete'; | 231 String message = 'gave up waiting for analysis to complete'; |
232 driver.logger.log(Level.WARNING, message); | 232 driver.logger.log(Level.WARNING, message); |
233 completer.completeError(message); | 233 completer.completeError(message); |
234 } | 234 } |
235 }); | 235 }); |
236 return completer.future; | 236 return completer.future; |
237 } | 237 } |
238 } | 238 } |
OLD | NEW |