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

Unified Diff: pkg/analyzer/test/generated/test_support.dart

Issue 263913003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | tests/co19/co19-analyzer2.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/test_support.dart
diff --git a/pkg/analyzer/test/generated/test_support.dart b/pkg/analyzer/test/generated/test_support.dart
index 995876b50af22d440a86097ca3f3bf592dfb6672..fe7f86badd5c305fb2557c8daf89d8544ce4bedd 100644
--- a/pkg/analyzer/test/generated/test_support.dart
+++ b/pkg/analyzer/test/generated/test_support.dart
@@ -473,17 +473,26 @@ class GatheringErrorListener implements AnalysisErrorListener {
}
/**
- * Add all of the errors recorded by the given listener to this listener.
+ * Add all of the given errors to this listener.
*
- * @param listener the listener that has recorded the errors to be added
+ * @param the errors to be added
*/
- void addAll(RecordingErrorListener listener) {
- for (AnalysisError error in listener.errors) {
+ void addAll(List<AnalysisError> errors) {
+ for (AnalysisError error in errors) {
onError(error);
}
}
/**
+ * Add all of the errors recorded by the given listener to this listener.
+ *
+ * @param listener the listener that has recorded the errors to be added
+ */
+ void addAll2(RecordingErrorListener listener) {
+ addAll(listener.errors);
+ }
+
+ /**
* Assert that the number of errors that have been gathered matches the number of errors that are
* given and that they have the expected error codes and locations. The order in which the errors
* were gathered is ignored.
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | tests/co19/co19-analyzer2.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698