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

Unified Diff: pkg/compiler/lib/src/universe/universe.dart

Issue 1184853002: Cleanup TypedSelector.appliesUnnamed (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Emit top level and static getters/setters for mirrors. Created 5 years, 6 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
« no previous file with comments | « pkg/compiler/lib/src/types/type_mask.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/universe/universe.dart
diff --git a/pkg/compiler/lib/src/universe/universe.dart b/pkg/compiler/lib/src/universe/universe.dart
index f5cc710cd38b541b6ea3b0d6c2a23b0738455c2d..0ae3cb6906c4ce5657afd8e76bf10b0f1c9472a9 100644
--- a/pkg/compiler/lib/src/universe/universe.dart
+++ b/pkg/compiler/lib/src/universe/universe.dart
@@ -844,18 +844,6 @@ class TypedSelector extends Selector {
bool appliesUnnamed(Element element, World world) {
assert(sameNameHack(element, world));
- // [TypedSelector] are only used after resolution.
- if (!element.isClassMember) return false;
-
- // A closure can be called through any typed selector:
- // class A {
- // get foo => () => 42;
- // bar() => foo(); // The call to 'foo' is a typed selector.
- // }
- if (element.enclosingClass.isClosure) {
- return appliesUntyped(element, world);
- }
-
if (!mask.canHit(element, this, world)) return false;
return appliesUntyped(element, world);
}
« no previous file with comments | « pkg/compiler/lib/src/types/type_mask.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698