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

Unified Diff: pkg/compiler/lib/src/ssa/builder.dart

Issue 2619243002: Make .enclosingClass always return the declaration (Closed)
Patch Set: Add comment. Created 3 years, 11 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/compiler/lib/src/ssa/builder.dart
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
index b6ef7c1ee7e58b670f82ce3436fba59f178f192a..8fe59bd9ac6517c84bb778e7b816720c3ae1dc71 100644
--- a/pkg/compiler/lib/src/ssa/builder.dart
+++ b/pkg/compiler/lib/src/ssa/builder.dart
@@ -3993,10 +3993,10 @@ class SsaBuilder extends ast.Visitor
bool isLength = selector.isGetter && selector.name == "length";
if (isLength || selector.isIndex) {
return closedWorld.isSubtypeOf(
- element.enclosingClass.declaration, helpers.jsIndexableClass);
+ element.enclosingClass, helpers.jsIndexableClass);
} else if (selector.isIndexSet) {
- return closedWorld.isSubtypeOf(element.enclosingClass.declaration,
- helpers.jsMutableIndexableClass);
+ return closedWorld.isSubtypeOf(
+ element.enclosingClass, helpers.jsMutableIndexableClass);
} else {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698