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

Side by Side Diff: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart

Issue 12383073: Add List.insert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use insertBefore and add is-check. Created 7 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
« no previous file with comments | « no previous file | pkg/serialization/lib/src/serialization_rule.dart » ('j') | 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.core; 1 library java.core;
2 2
3 import "dart:math" as math; 3 import "dart:math" as math;
4 import "dart:uri"; 4 import "dart:uri";
5 5
6 class JavaSystem { 6 class JavaSystem {
7 static int currentTimeMillis() { 7 static int currentTimeMillis() {
8 return (new DateTime.now()).millisecondsSinceEpoch; 8 return (new DateTime.now()).millisecondsSinceEpoch;
9 } 9 }
10 10
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 } 289 }
290 290
291 void clear() { 291 void clear() {
292 elements.clear(); 292 elements.clear();
293 } 293 }
294 294
295 void remove(Object element) { 295 void remove(Object element) {
296 return elements.remove(element); 296 return elements.remove(element);
297 } 297 }
298 298
299 void insert(int index, E value) {
300 elements.insert(index, value);
301 }
302
299 E removeAt(int index) { 303 E removeAt(int index) {
300 return elements.removeAt(index); 304 return elements.removeAt(index);
301 } 305 }
302 306
303 E removeLast() { 307 E removeLast() {
304 return elements.removeLast(); 308 return elements.removeLast();
305 } 309 }
306 310
307 Iterable<E> get reversed => elements.reversed; 311 Iterable<E> get reversed => elements.reversed;
308 312
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 } 421 }
418 } else if (sb.length > newLength) { 422 } else if (sb.length > newLength) {
419 var s = sb.toString().substring(0, newLength); 423 var s = sb.toString().substring(0, newLength);
420 sb = new StringBuffer(s); 424 sb = new StringBuffer(s);
421 } 425 }
422 } 426 }
423 void clear() { 427 void clear() {
424 sb = new StringBuffer(); 428 sb = new StringBuffer();
425 } 429 }
426 } 430 }
OLDNEW
« no previous file with comments | « no previous file | pkg/serialization/lib/src/serialization_rule.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698