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

Side by Side Diff: pkg/analyzer-experimental/lib/src/generated/java_core.dart

Issue 12671003: Push new analyzer-experimental with Resolver and ResolverTest. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 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 13 matching lines...) Expand all
24 return false; 24 return false;
25 } 25 }
26 if (o.runtimeType == t) { 26 if (o.runtimeType == t) {
27 return true; 27 return true;
28 } 28 }
29 String oTypeName = o.runtimeType.toString(); 29 String oTypeName = o.runtimeType.toString();
30 String tTypeName = t.toString(); 30 String tTypeName = t.toString();
31 if (oTypeName == tTypeName) { 31 if (oTypeName == tTypeName) {
32 return true; 32 return true;
33 } 33 }
34 if (oTypeName == "${tTypeName}Impl") {
35 return true;
36 }
37 if (oTypeName.startsWith("HashMap") && tTypeName == "Map") { 34 if (oTypeName.startsWith("HashMap") && tTypeName == "Map") {
38 return true; 35 return true;
39 } 36 }
40 if (oTypeName.startsWith("List") && tTypeName == "List") { 37 if (oTypeName.startsWith("List") && tTypeName == "List") {
41 return true; 38 return true;
42 } 39 }
40 // Dart Analysis Engine specific
41 if (oTypeName == "${tTypeName}Impl") {
42 return true;
43 }
44 if (tTypeName == "ExecutableElement") {
45 if (oTypeName == "MethodElementImpl" || oTypeName == "FunctionElementImpl") {
46 return true;
47 }
48 }
49 // no
43 return false; 50 return false;
44 } 51 }
45 52
46 class JavaArrays { 53 class JavaArrays {
47 static bool equals(List a, List b) { 54 static bool equals(List a, List b) {
48 if (a.length != b.length) { 55 if (a.length != b.length) {
49 return false; 56 return false;
50 } 57 }
51 var len = a.length; 58 var len = a.length;
52 for (int i = 0; i < len; i++) { 59 for (int i = 0; i < len; i++) {
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 } 424 }
418 } else if (sb.length > newLength) { 425 } else if (sb.length > newLength) {
419 var s = sb.toString().substring(0, newLength); 426 var s = sb.toString().substring(0, newLength);
420 sb = new StringBuffer(s); 427 sb = new StringBuffer(s);
421 } 428 }
422 } 429 }
423 void clear() { 430 void clear() {
424 sb = new StringBuffer(); 431 sb = new StringBuffer();
425 } 432 }
426 } 433 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698