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

Side by Side Diff: pkg/analyzer/lib/src/generated/java_engine.dart

Issue 660563005: Remove ArrayUtils (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library java.engine; 1 library java.engine;
2 2
3 import 'interner.dart'; 3 import 'interner.dart';
4 import 'java_core.dart'; 4 import 'java_core.dart';
5 5
6 /** 6 /**
7 * A predicate is a one-argument function that returns a boolean value. 7 * A predicate is a one-argument function that returns a boolean value.
8 */ 8 */
9 typedef bool Predicate<E>(E argument); 9 typedef bool Predicate<E>(E argument);
10 10
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 return ""; 203 return "";
204 } 204 }
205 int index = fileName.lastIndexOf('.'); 205 int index = fileName.lastIndexOf('.');
206 if (index >= 0) { 206 if (index >= 0) {
207 return fileName.substring(index + 1); 207 return fileName.substring(index + 1);
208 } 208 }
209 return ""; 209 return "";
210 } 210 }
211 } 211 }
212 212
213 class ArrayUtils {
214 static List add(List target, Object value) {
215 target = new List.from(target);
216 target.add(value);
217 return target;
218 }
219 static List addAt(List target, int index, Object value) {
220 target = new List.from(target);
221 target.insert(index, value);
222 return target;
223 }
224 static List addAll(List target, List source) {
225 List result = new List.from(target);
226 result.addAll(source);
227 return result;
228 }
229 }
230
231 class ObjectUtilities { 213 class ObjectUtilities {
232 static int combineHashCodes(int first, int second) => first * 31 + second; 214 static int combineHashCodes(int first, int second) => first * 31 + second;
233 } 215 }
234 216
235 class UUID { 217 class UUID {
236 static int __nextId = 0; 218 static int __nextId = 0;
237 final String id; 219 final String id;
238 UUID(this.id); 220 UUID(this.id);
239 String toString() => id; 221 String toString() => id;
240 static UUID randomUUID() => new UUID((__nextId).toString()); 222 static UUID randomUUID() => new UUID((__nextId).toString());
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 if (cause != null) { 310 if (cause != null) {
329 buffer.write('Caused by '); 311 buffer.write('Caused by ');
330 cause._writeOn(buffer); 312 cause._writeOn(buffer);
331 } 313 }
332 } else { 314 } else {
333 buffer.writeln(exception.toString()); 315 buffer.writeln(exception.toString());
334 buffer.writeln(stackTrace.toString()); 316 buffer.writeln(stackTrace.toString());
335 } 317 }
336 } 318 }
337 } 319 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698