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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_experimental/lib/src/generated/java_core.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/java_core.dart b/pkg/analyzer_experimental/lib/src/generated/java_core.dart
index 769fdf15ded20a58372e6049da944500be6de52e..d13bb3d72e1bf7812215b9c4cbbb41812e9b2057 100644
--- a/pkg/analyzer_experimental/lib/src/generated/java_core.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/java_core.dart
@@ -31,10 +31,13 @@ bool isInstanceOf(o, Type t) {
if (oTypeName == tTypeName) {
return true;
}
- if (oTypeName.startsWith("List") && tTypeName == "List") {
+ if (oTypeName.startsWith("HashMap") && tTypeName == "Map") {
+ return true;
+ }
+ if (oTypeName.startsWith("LinkedHashMap") && tTypeName == "Map") {
return true;
}
- if (tTypeName == "Map" && o is Map) {
+ if (oTypeName.startsWith("List") && tTypeName == "List") {
return true;
}
// Dart Analysis Engine specific
« 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