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

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

Issue 13884016: Backport analyzer-experimental changes to 'resources'. (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 | « editor/util/plugins/com.google.dart.java2dart/resources/java_core.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.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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 _coPos++; 368 _coPos++;
369 _elPos++; 369 _elPos++;
370 return _current; 370 return _current;
371 } 371 }
372 372
373 void remove() { 373 void remove() {
374 if (_iterable is List) { 374 if (_iterable is List) {
375 _coPos--; 375 _coPos--;
376 (_iterable as List).remove(_coPos); 376 (_iterable as List).remove(_coPos);
377 } else if (_iterable is Set) { 377 } else if (_iterable is Set) {
378 _iterable.remove(_current); 378 (_iterable as Set).remove(_current);
379 } else { 379 } else {
380 throw new StateError("Unsupported iterable ${_iterable.runtimeType}"); 380 throw new StateError("Unsupported iterable ${_iterable.runtimeType}");
381 } 381 }
382 } 382 }
383 } 383 }
384 384
385 class MapEntry<K, V> { 385 class MapEntry<K, V> {
386 K _key; 386 K _key;
387 V _value; 387 V _value;
388 MapEntry(this._key, this._value); 388 MapEntry(this._key, this._value);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 } 440 }
441 } else if (sb.length > newLength) { 441 } else if (sb.length > newLength) {
442 var s = sb.toString().substring(0, newLength); 442 var s = sb.toString().substring(0, newLength);
443 sb = new StringBuffer(s); 443 sb = new StringBuffer(s);
444 } 444 }
445 } 445 }
446 void clear() { 446 void clear() {
447 sb = new StringBuffer(); 447 sb = new StringBuffer();
448 } 448 }
449 } 449 }
OLDNEW
« no previous file with comments | « editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698