Index: pkg/compiler/lib/src/resolution/class_members.dart |
diff --git a/pkg/compiler/lib/src/resolution/class_members.dart b/pkg/compiler/lib/src/resolution/class_members.dart |
index 2a12190d82a95e9bfa10aa736e5cb6196a54fcc4..7c2877798a890f885b13ee3aeea4c4364f0b9923 100644 |
--- a/pkg/compiler/lib/src/resolution/class_members.dart |
+++ b/pkg/compiler/lib/src/resolution/class_members.dart |
@@ -876,6 +876,9 @@ abstract class ClassMemberMixin implements ClassElement { |
/// and private names. |
void computeClassMember( |
Resolution resolution, String name, Setlet<Name> names) { |
+ // TODO(johnniwinther): Should we assert that the class has been resolved |
+ // instead? |
+ ensureResolved(resolution); |
if (isMemberComputed(name)) return; |
if (Name.isPrivateName(name)) { |
names |
@@ -899,6 +902,9 @@ abstract class ClassMemberMixin implements ClassElement { |
} |
void computeAllClassMembers(Resolution resolution) { |
+ // TODO(johnniwinther): Should we assert that the class has been resolved |
+ // instead? |
+ ensureResolved(resolution); |
if (areAllMembersComputed()) return; |
MembersCreator creator = _prepareCreator(resolution); |
creator.computeAllMembers(); |