| OLD | NEW |
| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; |
| 307 if (buffer.length == 0) { | 307 if (buffer.length == 0) { |
| 308 buffer.write("Expected "); | 308 buffer.write("Expected "); |
| 309 } else { | 309 } else { |
| 310 buffer.write("; "); | 310 buffer.write("; "); |
| 311 } | 311 } |
| 312 buffer.write("0 errors of type "); | 312 buffer.write("0 errors of type "); |
| 313 buffer.write("${code.runtimeType}.$code"); | 313 buffer.write(code.uniqueName); |
| 314 buffer.write(", found "); | 314 buffer.write(", found "); |
| 315 buffer.write(actualCount); | 315 buffer.write(actualCount); |
| 316 buffer.write(" ("); | 316 buffer.write(" ("); |
| 317 for (int i = 0; i < actualErrors.length; i++) { | 317 for (int i = 0; i < actualErrors.length; i++) { |
| 318 AnalysisError error = actualErrors[i]; | 318 AnalysisError error = actualErrors[i]; |
| 319 if (i > 0) { | 319 if (i > 0) { |
| 320 buffer.write(", "); | 320 buffer.write(", "); |
| 321 } | 321 } |
| 322 buffer.write(error.offset); | 322 buffer.write(error.offset); |
| 323 } | 323 } |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |