Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: pkg/analysis_server/benchmark/integration/operation.dart

Issue 2844273003: Unify the server and plugin versions of the generators (Closed)
Patch Set: add missed files Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698