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]); |
} |
} |
} |