| Index: sdk/lib/_internal/compiler/implementation/elements/modelx.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/elements/modelx.dart (revision 19450)
|
| +++ sdk/lib/_internal/compiler/implementation/elements/modelx.dart (working copy)
|
| @@ -1522,10 +1522,18 @@
|
| * origin and the patch class are returned.
|
| */
|
| Element lookupSelector(Selector selector) {
|
| + return internalLookupSelector(selector, false);
|
| + }
|
| +
|
| + Element lookupSuperSelector(Selector selector) {
|
| + return internalLookupSelector(selector, true);
|
| + }
|
| +
|
| + Element internalLookupSelector(Selector selector, bool isSuperLookup) {
|
| SourceString name = selector.name;
|
| bool isPrivate = name.isPrivate();
|
| LibraryElement library = selector.library;
|
| - for (ClassElement current = this;
|
| + for (ClassElement current = isSuperLookup ? superclass : this;
|
| current != null;
|
| current = current.superclass) {
|
| Element member = current.lookupLocalMember(name);
|
|
|