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

Unified Diff: lib/compiler/implementation/world.dart

Issue 10825337: Add name and library to selectors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make library == null for non-private selectors. Created 8 years, 4 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: lib/compiler/implementation/world.dart
diff --git a/lib/compiler/implementation/world.dart b/lib/compiler/implementation/world.dart
index d6ff5c2301f4d6831d52b905aef71b88642beeea..03e4e3a1906aa52d95b2ffbe54361c1c4aef6f59 100644
--- a/lib/compiler/implementation/world.dart
+++ b/lib/compiler/implementation/world.dart
@@ -72,10 +72,11 @@ class World {
Set<ClassElement> findNoSuchMethodHolders(Type type) {
Set<ClassElement> result = new Set<ClassElement>();
MemberSet memberSet = _memberSetFor(type, Compiler.NO_SUCH_METHOD);
+ Selector noSuchMethodSelector = new Selector.noSuchMethod();
for (Element element in memberSet.elements) {
ClassElement holder = element.getEnclosingClass();
if (holder !== compiler.objectClass &&
- Selector.INVOCATION_2.applies(element, compiler)) {
+ noSuchMethodSelector.applies(element, compiler)) {
result.add(holder);
}
}

Powered by Google App Engine
This is Rietveld 408576698