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

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

Issue 13956006: Remove insertRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebuild DOM (unrelated CL) and update status files. Created 7 years, 8 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/analyzer_experimental/lib/src/generated/element.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 import "dart:collection" show ListBase; 5 import "dart:collection" show ListBase;
6 6
7 class JavaSystem { 7 class JavaSystem {
8 static int currentTimeMillis() { 8 static int currentTimeMillis() {
9 return (new DateTime.now()).millisecondsSinceEpoch; 9 return (new DateTime.now()).millisecondsSinceEpoch;
10 } 10 }
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 Iterable<E> get reversed => elements.reversed; 326 Iterable<E> get reversed => elements.reversed;
327 327
328 List<E> sublist(int start, [int end]) => elements.sublist(start, end); 328 List<E> sublist(int start, [int end]) => elements.sublist(start, end);
329 329
330 List<E> getRange(int start, int length) => sublist(start, start + length); 330 List<E> getRange(int start, int length) => sublist(start, start + length);
331 331
332 void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]) { 332 void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]) {
333 elements.setRange(start, end, iterable, skipCount); 333 elements.setRange(start, end, iterable, skipCount);
334 } 334 }
335 335
336 void removeRange(int start, int length) { 336 void removeRange(int start, int end) {
337 elements.removeRange(start, length); 337 elements.removeRange(start, end);
338 }
339
340 void insertRange(int start, int length, [E fill]) {
341 elements.insertRange(start, length, fill);
342 } 338 }
343 339
344 Map<int, E> asMap() { 340 Map<int, E> asMap() {
345 return elements.asMap(); 341 return elements.asMap();
346 } 342 }
347 } 343 }
348 344
349 class JavaIterator<E> { 345 class JavaIterator<E> {
350 Iterable<E> _iterable; 346 Iterable<E> _iterable;
351 List<E> _elements = new List<E>(); 347 List<E> _elements = new List<E>();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 } 436 }
441 } else if (sb.length > newLength) { 437 } else if (sb.length > newLength) {
442 var s = sb.toString().substring(0, newLength); 438 var s = sb.toString().substring(0, newLength);
443 sb = new StringBuffer(s); 439 sb = new StringBuffer(s);
444 } 440 }
445 } 441 }
446 void clear() { 442 void clear() {
447 sb = new StringBuffer(); 443 sb = new StringBuffer();
448 } 444 }
449 } 445 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer_experimental/lib/src/generated/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698