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

Side by Side Diff: pkg/analysis_server/test/stress/utilities/server.dart

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: 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 /** 5 /**
6 * Support for interacting with an analysis server that is running in a separate 6 * Support for interacting with an analysis server that is running in a separate
7 * process. 7 * process.
8 */ 8 */
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 * The completer that will be completed when a response is received. 103 * The completer that will be completed when a response is received.
104 */ 104 */
105 Completer<Response> _responseCompleter; 105 Completer<Response> _responseCompleter;
106 106
107 /** 107 /**
108 * Initialize a newly created set of request data. 108 * Initialize a newly created set of request data.
109 */ 109 */
110 RequestData(this.id, this.method, this.params, this.requestTime); 110 RequestData(this.id, this.method, this.params, this.requestTime);
111 111
112 /** 112 /**
113 * Return the number of milliseconds that elapsed betwee the request and the 113 * Return the number of milliseconds that elapsed between the request and the
114 * response. This getter assumes that the response was received. 114 * response. This getter assumes that the response was received.
115 */ 115 */
116 int get elapsedTime => responseTime - requestTime; 116 int get elapsedTime => responseTime - requestTime;
117 117
118 /** 118 /**
119 * Return a future that will complete when a response is received. 119 * Return a future that will complete when a response is received.
120 */ 120 */
121 Future<Response> get respondedTo { 121 Future<Response> get respondedTo {
122 if (_response != null) { 122 if (_response != null) {
123 return new Future.value(_response); 123 return new Future.value(_response);
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 if (buffer.length > 0) { 1077 if (buffer.length > 0) {
1078 buffer.writeln(); 1078 buffer.writeln();
1079 buffer.writeln(); 1079 buffer.writeln();
1080 } 1080 }
1081 buffer.writeln(filePath); 1081 buffer.writeln(filePath);
1082 _writeErrors(' Expected ', expectedErrors); 1082 _writeErrors(' Expected ', expectedErrors);
1083 buffer.writeln(); 1083 buffer.writeln();
1084 _writeErrors(' Found ', actualErrors); 1084 _writeErrors(' Found ', actualErrors);
1085 } 1085 }
1086 } 1086 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/watch_manager.dart ('k') | pkg/analyzer/lib/src/codegen/text_formatter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698