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

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

Issue 14308011: New Analysis Engine snapshot. (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
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 24 matching lines...) Expand all
35 if (oTypeName.startsWith("HashMap") && tTypeName == "Map") { 35 if (oTypeName.startsWith("HashMap") && tTypeName == "Map") {
36 return true; 36 return true;
37 } 37 }
38 if (oTypeName.startsWith("List") && tTypeName == "List") { 38 if (oTypeName.startsWith("List") && tTypeName == "List") {
39 return true; 39 return true;
40 } 40 }
41 // Dart Analysis Engine specific 41 // Dart Analysis Engine specific
42 if (oTypeName == "${tTypeName}Impl") { 42 if (oTypeName == "${tTypeName}Impl") {
43 return true; 43 return true;
44 } 44 }
45 if (tTypeName == "MethodElement") {
46 if (oTypeName == "MethodMember") {
47 return true;
48 }
49 }
45 if (tTypeName == "ExecutableElement") { 50 if (tTypeName == "ExecutableElement") {
46 if (oTypeName == "MethodElementImpl" || oTypeName == "FunctionElementImpl") { 51 if (oTypeName == "MethodElementImpl" || oTypeName == "FunctionElementImpl") {
47 return true; 52 return true;
48 } 53 }
49 } 54 }
50 // no 55 // no
51 return false; 56 return false;
52 } 57 }
53 58
54 class JavaArrays { 59 class JavaArrays {
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 } 457 }
453 } else if (sb.length > newLength) { 458 } else if (sb.length > newLength) {
454 var s = sb.toString().substring(0, newLength); 459 var s = sb.toString().substring(0, newLength);
455 sb = new StringBuffer(s); 460 sb = new StringBuffer(s);
456 } 461 }
457 } 462 }
458 void clear() { 463 void clear() {
459 sb = new StringBuffer(); 464 sb = new StringBuffer();
460 } 465 }
461 } 466 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698