| 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 'package:analyzer/src/generated/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 GatheringErrorListener() : this.con1(null); | 466 GatheringErrorListener() : this.con1(null); |
| 467 | 467 |
| 468 /** | 468 /** |
| 469 * Initialize a newly created error listener to collect errors. | 469 * Initialize a newly created error listener to collect errors. |
| 470 */ | 470 */ |
| 471 GatheringErrorListener.con1(this._rawSource) { | 471 GatheringErrorListener.con1(this._rawSource) { |
| 472 this._markedSource = _rawSource; | 472 this._markedSource = _rawSource; |
| 473 } | 473 } |
| 474 | 474 |
| 475 /** | 475 /** |
| 476 * Add all of the given errors to this listener. |
| 477 * |
| 478 * @param the errors to be added |
| 479 */ |
| 480 void addAll(List<AnalysisError> errors) { |
| 481 for (AnalysisError error in errors) { |
| 482 onError(error); |
| 483 } |
| 484 } |
| 485 |
| 486 /** |
| 476 * Add all of the errors recorded by the given listener to this listener. | 487 * Add all of the errors recorded by the given listener to this listener. |
| 477 * | 488 * |
| 478 * @param listener the listener that has recorded the errors to be added | 489 * @param listener the listener that has recorded the errors to be added |
| 479 */ | 490 */ |
| 480 void addAll(RecordingErrorListener listener) { | 491 void addAll2(RecordingErrorListener listener) { |
| 481 for (AnalysisError error in listener.errors) { | 492 addAll(listener.errors); |
| 482 onError(error); | |
| 483 } | |
| 484 } | 493 } |
| 485 | 494 |
| 486 /** | 495 /** |
| 487 * Assert that the number of errors that have been gathered matches the number
of errors that are | 496 * Assert that the number of errors that have been gathered matches the number
of errors that are |
| 488 * given and that they have the expected error codes and locations. The order
in which the errors | 497 * given and that they have the expected error codes and locations. The order
in which the errors |
| 489 * were gathered is ignored. | 498 * were gathered is ignored. |
| 490 * | 499 * |
| 491 * @param errorCodes the errors that should have been gathered | 500 * @param errorCodes the errors that should have been gathered |
| 492 * @throws AssertionFailedError if a different number of errors have been gath
ered than were | 501 * @throws AssertionFailedError if a different number of errors have been gath
ered than were |
| 493 * expected or if they do not have the same codes and locations | 502 * expected or if they do not have the same codes and locations |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 Source resolveRelative(Uri uri) { | 863 Source resolveRelative(Uri uri) { |
| 855 throw new UnsupportedOperationException(); | 864 throw new UnsupportedOperationException(); |
| 856 } | 865 } |
| 857 UriKind get uriKind { | 866 UriKind get uriKind { |
| 858 throw new UnsupportedOperationException(); | 867 throw new UnsupportedOperationException(); |
| 859 } | 868 } |
| 860 TimestampedData<String> get contents { | 869 TimestampedData<String> get contents { |
| 861 throw new UnsupportedOperationException(); | 870 throw new UnsupportedOperationException(); |
| 862 } | 871 } |
| 863 } | 872 } |
| OLD | NEW |