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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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.utilities.collection; 8 library engine.utilities.collection;
9 9
10 import 'java_core.dart'; 10 import 'java_core.dart';
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 ]. 116 ].
117 */ 117 */
118 class ListUtilities { 118 class ListUtilities {
119 /** 119 /**
120 * Add all of the elements in the given array to the given list. 120 * Add all of the elements in the given array to the given list.
121 * 121 *
122 * @param list the list to which the elements are to be added 122 * @param list the list to which the elements are to be added
123 * @param elements the elements to be added to the list 123 * @param elements the elements to be added to the list
124 */ 124 */
125 static void addAll(List list, List<Object> elements) { 125 static void addAll(List list, List<Object> elements) {
126 for (Object element in elements) { 126 int count = elements.length;
127 list.add(element); 127 for (int i = 0; i < count; i++) {
128 list.add(elements[i]);
128 } 129 }
129 } 130 }
130 } 131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698