1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-29 10:12:08 +00:00

HackStudio+LibCpp: Include class members in Locator

This commit is contained in:
Itamar 2021-04-08 20:34:01 +03:00 committed by Andreas Kling
parent c8ad1df143
commit c6c83bd80e
3 changed files with 23 additions and 12 deletions

View file

@ -309,6 +309,13 @@ void StructOrClassDeclaration::dump(size_t indent) const
member.dump(indent + 1);
}
}
NonnullRefPtrVector<Declaration> StructOrClassDeclaration::declarations() const
{
NonnullRefPtrVector<Declaration> declarations;
for (auto& member : m_members)
declarations.append(member);
return declarations;
}
void MemberDeclaration::dump(size_t indent) const
{