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

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

Issue 2609063002: Further reduce use of Element in codegen. (Closed)
Patch Set: Created 3 years, 12 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/universe/selector.dart
diff --git a/pkg/compiler/lib/src/universe/selector.dart b/pkg/compiler/lib/src/universe/selector.dart
index bc959c11af499b8b9abeacfc1c32c8f3fa72002f..8ca86371d752ae2fae4e3ac94b7b8ce246886b02 100644
--- a/pkg/compiler/lib/src/universe/selector.dart
+++ b/pkg/compiler/lib/src/universe/selector.dart
@@ -12,6 +12,7 @@ import '../elements/elements.dart'
Elements,
FunctionElement,
FunctionSignature,
+ MemberElement,
Name,
LibraryElement,
PublicName;
@@ -247,7 +248,7 @@ class Selector {
return callStructure.signatureApplies(function.functionSignature);
}
- bool applies(Element element) {
+ bool applies(MemberElement element) {
if (name != element.name) return false;
return appliesUnnamed(element);
}

Powered by Google App Engine
This is Rietveld 408576698