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

Side by Side Diff: pkg/analysis_server/test/completion_test_support.dart

Issue 1310263003: Reformat code to minimize churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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) 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 test.completion.support; 5 library test.completion.support;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analysis_server/src/protocol.dart'; 10 import 'package:analysis_server/src/protocol.dart';
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 183 }
184 if (test.positiveResults.isEmpty && test.negativeResults.isEmpty) { 184 if (test.positiveResults.isEmpty && test.negativeResults.isEmpty) {
185 badResults.add(test.id); 185 badResults.add(test.id);
186 } 186 }
187 } 187 }
188 if (!(badPoints.isEmpty && badResults.isEmpty)) { 188 if (!(badPoints.isEmpty && badResults.isEmpty)) {
189 StringBuffer err = new StringBuffer(); 189 StringBuffer err = new StringBuffer();
190 if (!badPoints.isEmpty) { 190 if (!badPoints.isEmpty) {
191 err.write("No test location for tests:"); 191 err.write("No test location for tests:");
192 for (String ch in badPoints) { 192 for (String ch in badPoints) {
193 err 193 err..write(' ')..write(ch);
194 ..write(' ')
195 ..write(ch);
196 } 194 }
197 err.write(' '); 195 err.write(' ');
198 } 196 }
199 if (!badResults.isEmpty) { 197 if (!badResults.isEmpty) {
200 err.write("No results for tests:"); 198 err.write("No results for tests:");
201 for (String ch in badResults) { 199 for (String ch in badResults) {
202 err 200 err..write(' ')..write(ch);
203 ..write(' ')
204 ..write(ch);
205 } 201 }
206 } 202 }
207 throw new IllegalStateException(err.toString()); 203 throw new IllegalStateException(err.toString());
208 } 204 }
209 return tests.values.toList(); 205 return tests.values.toList();
210 } 206 }
211 } 207 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/completion_test.dart ('k') | pkg/analysis_server/test/context_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698