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

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

Issue 23890008: Revert "Make LinkedHashMap also have a factory constructor and be customizable" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 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.startsWith("HashMap") && tTypeName == "Map") {
35 return true;
36 }
37 if (oTypeName.startsWith("LinkedHashMap") && tTypeName == "Map") {
38 return true;
39 }
34 if (oTypeName.startsWith("List") && tTypeName == "List") { 40 if (oTypeName.startsWith("List") && tTypeName == "List") {
35 return true; 41 return true;
36 } 42 }
37 if (tTypeName == "Map" && o is Map) {
38 return true;
39 }
40 // Dart Analysis Engine specific 43 // Dart Analysis Engine specific
41 if (oTypeName == "${tTypeName}Impl") { 44 if (oTypeName == "${tTypeName}Impl") {
42 return true; 45 return true;
43 } 46 }
44 if (tTypeName == "MethodElement") { 47 if (tTypeName == "MethodElement") {
45 if (oTypeName == "MethodMember") { 48 if (oTypeName == "MethodMember") {
46 return true; 49 return true;
47 } 50 }
48 } 51 }
49 if (tTypeName == "ExecutableElement") { 52 if (tTypeName == "ExecutableElement") {
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 abstract class Enum<E extends Enum> implements Comparable<E> { 558 abstract class Enum<E extends Enum> implements Comparable<E> {
556 /// The name of this enum constant, as declared in the enum declaration. 559 /// The name of this enum constant, as declared in the enum declaration.
557 final String name; 560 final String name;
558 /// The position in the enum declaration. 561 /// The position in the enum declaration.
559 final int ordinal; 562 final int ordinal;
560 Enum(this.name, this.ordinal); 563 Enum(this.name, this.ordinal);
561 int get hashCode => ordinal; 564 int get hashCode => ordinal;
562 String toString() => name; 565 String toString() => name;
563 int compareTo(E other) => ordinal - other.ordinal; 566 int compareTo(E other) => ordinal - other.ordinal;
564 } 567 }
OLDNEW
« no previous file with comments | « editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart ('k') | pkg/mdv/lib/src/template_iterator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698