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

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

Issue 16774005: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
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:collection" show ListBase; 4 import "dart:collection" show ListBase;
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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 if (uri.path.isEmpty) { 286 if (uri.path.isEmpty) {
287 throw new URISyntaxException(); 287 throw new URISyntaxException();
288 } 288 }
289 return uri; 289 return uri;
290 } 290 }
291 291
292 class URISyntaxException implements Exception { 292 class URISyntaxException implements Exception {
293 String toString() => "URISyntaxException"; 293 String toString() => "URISyntaxException";
294 } 294 }
295 295
296 class IOException implements Exception {
297 String toString() => "IOException";
298 }
299
300 class MissingFormatArgumentException implements Exception { 296 class MissingFormatArgumentException implements Exception {
301 final String s; 297 final String s;
302 298
303 String toString() => "MissingFormatArgumentException: $s"; 299 String toString() => "MissingFormatArgumentException: $s";
304 300
305 MissingFormatArgumentException(this.s); 301 MissingFormatArgumentException(this.s);
306 } 302 }
307 303
308 class ListWrapper<E> extends ListBase<E> implements List<E> { 304 class ListWrapper<E> extends ListBase<E> implements List<E> {
309 List<E> elements = new List<E>(); 305 List<E> elements = new List<E>();
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 } 504 }
509 } else if (sb.length > newLength) { 505 } else if (sb.length > newLength) {
510 var s = sb.toString().substring(0, newLength); 506 var s = sb.toString().substring(0, newLength);
511 sb = new StringBuffer(s); 507 sb = new StringBuffer(s);
512 } 508 }
513 } 509 }
514 void clear() { 510 void clear() {
515 sb = new StringBuffer(); 511 sb = new StringBuffer();
516 } 512 }
517 } 513 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698