Index: pkg/compiler/lib/src/elements/common.dart |
diff --git a/pkg/compiler/lib/src/elements/common.dart b/pkg/compiler/lib/src/elements/common.dart |
index 6ab5de20fdad0c55adfe7fcced9fc896bf5ef782..3e430d2ae90d3e38eb46b0d17060c285539de532 100644 |
--- a/pkg/compiler/lib/src/elements/common.dart |
+++ b/pkg/compiler/lib/src/elements/common.dart |
@@ -215,22 +215,20 @@ abstract class ClassElementCommon implements ClassElement { |
* When called on the implementation element both members declared in the |
* origin and the patch class are returned. |
*/ |
- Element lookupByName(Name memberName, {ClassElement stopAt}) { |
- return internalLookupByName(memberName, |
- isSuperLookup: false, stopAtSuperclass: stopAt); |
+ Element lookupByName(Name memberName) { |
+ return internalLookupByName(memberName, isSuperLookup: false); |
} |
Element lookupSuperByName(Name memberName) { |
return internalLookupByName(memberName, isSuperLookup: true); |
} |
- Element internalLookupByName(Name memberName, |
- {bool isSuperLookup, ClassElement stopAtSuperclass}) { |
+ Element internalLookupByName(Name memberName, {bool isSuperLookup}) { |
String name = memberName.text; |
bool isPrivate = memberName.isPrivate; |
LibraryElement library = memberName.library; |
for (ClassElement current = isSuperLookup ? superclass : this; |
- current != null && current != stopAtSuperclass; |
+ current != null; |
current = current.superclass) { |
Element member = current.lookupLocalMember(name); |
if (member == null && current.isPatched) { |