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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/java_core.dart

Issue 14231002: Add length getter to ListWrapper. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | 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.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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 } 270 }
271 271
272 void operator []=(int index, E value) { 272 void operator []=(int index, E value) {
273 elements[index] = value; 273 elements[index] = value;
274 } 274 }
275 275
276 void set length(int newLength) { 276 void set length(int newLength) {
277 elements.length = newLength; 277 elements.length = newLength;
278 } 278 }
279 279
280 int get length => elements.length;
281
280 void add(E value) { 282 void add(E value) {
281 elements.add(value); 283 elements.add(value);
282 } 284 }
283 285
284 void addLast(E value) { 286 void addLast(E value) {
285 elements.add(value); 287 elements.add(value);
286 } 288 }
287 289
288 void addAll(Iterable<E> iterable) { 290 void addAll(Iterable<E> iterable) {
289 elements.addAll(iterable); 291 elements.addAll(iterable);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 } 440 }
439 } else if (sb.length > newLength) { 441 } else if (sb.length > newLength) {
440 var s = sb.toString().substring(0, newLength); 442 var s = sb.toString().substring(0, newLength);
441 sb = new StringBuffer(s); 443 sb = new StringBuffer(s);
442 } 444 }
443 } 445 }
444 void clear() { 446 void clear() {
445 sb = new StringBuffer(); 447 sb = new StringBuffer();
446 } 448 }
447 } 449 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698