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

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

Issue 2630743002: Remove use of FunctionSignature et al from call_structure.dart (Closed)
Patch Set: 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/universe/selector.dart
diff --git a/pkg/compiler/lib/src/universe/selector.dart b/pkg/compiler/lib/src/universe/selector.dart
index 647c3fb39d7ad7fce70d39b8c8f76f8bba97fb0b..be129c1b084f6a062a288d79387168df94075189 100644
--- a/pkg/compiler/lib/src/universe/selector.dart
+++ b/pkg/compiler/lib/src/universe/selector.dart
@@ -14,10 +14,9 @@ import '../elements/elements.dart'
MemberElement,
MethodElement,
Name,
- LibraryElement,
PublicName;
+import '../elements/entities.dart';
import '../util/util.dart' show Hashing;
-import '../common/resolution.dart' show Target;
import 'call_structure.dart' show CallStructure;
class SelectorKind {
@@ -58,7 +57,7 @@ class Selector {
String get name => memberName.text;
- LibraryElement get library => memberName.library;
+ LibraryEntity get library => memberName.library;
Selector.internal(
this.kind, this.memberName, this.callStructure, this.hashCode) {
@@ -245,7 +244,7 @@ class Selector {
bool signatureApplies(MethodElement function) {
if (Elements.isUnresolved(function)) return false;
- return callStructure.signatureApplies(function.functionSignature);
+ return callStructure.signatureApplies(function.type);
}
bool applies(MemberElement element) {

Powered by Google App Engine
This is Rietveld 408576698