File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -760,7 +760,7 @@ class IterableDeclContext {
760
760
void addMember (Decl *member, Decl *hint = nullptr );
761
761
762
762
// / See \c MemberCount
763
- unsigned getMemberCount () const { return MemberCount; }
763
+ unsigned getMemberCount () const ;
764
764
765
765
// / Check whether there are lazily-loaded members.
766
766
bool hasLazyMembers () const {
Original file line number Diff line number Diff line change @@ -807,6 +807,12 @@ bool IterableDeclContext::hasUnparsedMembers() const {
807
807
return true ;
808
808
}
809
809
810
+ unsigned IterableDeclContext::getMemberCount () const {
811
+ if (hasUnparsedMembers ())
812
+ loadAllMembers ();
813
+ return MemberCount;
814
+ }
815
+
810
816
void IterableDeclContext::loadAllMembers () const {
811
817
ASTContext &ctx = getASTContext ();
812
818
You can’t perform that action at this time.
0 commit comments