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

Side by Side Diff: pkg/analyzer/test/generated/test_support.dart

Issue 706933005: Additional fixes to printing of error codes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/error_formatter.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.test_support; 8 library engine.test_support;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 actualCount = list.length; 286 actualCount = list.length;
287 } 287 }
288 if (actualCount != expectedCount) { 288 if (actualCount != expectedCount) {
289 if (buffer.length == 0) { 289 if (buffer.length == 0) {
290 buffer.write("Expected "); 290 buffer.write("Expected ");
291 } else { 291 } else {
292 buffer.write("; "); 292 buffer.write("; ");
293 } 293 }
294 buffer.write(expectedCount); 294 buffer.write(expectedCount);
295 buffer.write(" errors of type "); 295 buffer.write(" errors of type ");
296 buffer.write("${code.runtimeType}.$code"); 296 buffer.write(code.uniqueName);
297 buffer.write(", found "); 297 buffer.write(", found ");
298 buffer.write(actualCount); 298 buffer.write(actualCount);
299 } 299 }
300 }); 300 });
301 // 301 //
302 // Check that there are no more errors in the actual-errors map, 302 // Check that there are no more errors in the actual-errors map,
303 // otherwise record message. 303 // otherwise record message.
304 // 304 //
305 errorsByCode.forEach((ErrorCode code, List<AnalysisError> actualErrors) { 305 errorsByCode.forEach((ErrorCode code, List<AnalysisError> actualErrors) {
306 int actualCount = actualErrors.length; 306 int actualCount = actualErrors.length;
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 void getContentsToReceiver(Source_ContentReceiver receiver) { 638 void getContentsToReceiver(Source_ContentReceiver receiver) {
639 throw new UnsupportedOperationException(); 639 throw new UnsupportedOperationException();
640 } 640 }
641 Source resolve(String uri) { 641 Source resolve(String uri) {
642 throw new UnsupportedOperationException(); 642 throw new UnsupportedOperationException();
643 } 643 }
644 Uri resolveRelativeUri(Uri uri) { 644 Uri resolveRelativeUri(Uri uri) {
645 return new Uri(scheme: 'file', path: _name).resolveUri(uri); 645 return new Uri(scheme: 'file', path: _name).resolveUri(uri);
646 } 646 }
647 } 647 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/error_formatter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698