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

Unified Diff: pkg/analyzer/lib/src/generated/utilities_collection.dart

Issue 184893003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
Index: pkg/analyzer/lib/src/generated/utilities_collection.dart
diff --git a/pkg/analyzer/lib/src/generated/utilities_collection.dart b/pkg/analyzer/lib/src/generated/utilities_collection.dart
index 8653603a2edc28ae8eb6c39005c33fdb38c16a58..dd0779263b982dcfc227436281264facab30e14c 100644
--- a/pkg/analyzer/lib/src/generated/utilities_collection.dart
+++ b/pkg/analyzer/lib/src/generated/utilities_collection.dart
@@ -123,8 +123,9 @@ class ListUtilities {
* @param elements the elements to be added to the list
*/
static void addAll(List list, List<Object> elements) {
- for (Object element in elements) {
- list.add(element);
+ int count = elements.length;
+ for (int i = 0; i < count; i++) {
+ list.add(elements[i]);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698