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

Unified 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 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 72bdc99c952196a2ab12d939c9c96fae1b7f711b..fe120f09e20d4be3f79679c7487cabc650190c0e 100644
--- a/pkg/analyzer-experimental/lib/src/generated/java_core.dart
+++ b/pkg/analyzer-experimental/lib/src/generated/java_core.dart
@@ -31,15 +31,22 @@ bool isInstanceOf(o, Type t) {
if (oTypeName == tTypeName) {
return true;
}
- if (oTypeName == "${tTypeName}Impl") {
- return true;
- }
if (oTypeName.startsWith("HashMap") && tTypeName == "Map") {
return true;
}
if (oTypeName.startsWith("List") && tTypeName == "List") {
return true;
}
+ // Dart Analysis Engine specific
+ if (oTypeName == "${tTypeName}Impl") {
+ return true;
+ }
+ if (tTypeName == "ExecutableElement") {
+ if (oTypeName == "MethodElementImpl" || oTypeName == "FunctionElementImpl") {
+ return true;
+ }
+ }
+ // no
return false;
}

Powered by Google App Engine
This is Rietveld 408576698