diff options
Diffstat (limited to 'source/slang/slang-doc-markdown-writer.cpp')
| -rw-r--r-- | source/slang/slang-doc-markdown-writer.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/slang/slang-doc-markdown-writer.cpp b/source/slang/slang-doc-markdown-writer.cpp index 4d8afd763..9130c05ed 100644 --- a/source/slang/slang-doc-markdown-writer.cpp +++ b/source/slang/slang-doc-markdown-writer.cpp @@ -667,13 +667,10 @@ static bool _isFirstOverridden(Decl* decl) ContainerDecl* parentDecl = decl->parentDecl; - // Make sure we have the member dictionary. - buildMemberDictionary(parentDecl); - Name* declName = decl->getName(); if (declName) { - Decl** firstDeclPtr = parentDecl->memberDictionary.TryGetValue(declName); + Decl** firstDeclPtr = parentDecl->getMemberDictionary().TryGetValue(declName); return (firstDeclPtr && *firstDeclPtr == decl) || (firstDeclPtr == nullptr); } @@ -1061,11 +1058,10 @@ void DocMarkdownWriter::writeAggType(const ASTMarkup::Entry& entry, AggTypeDeclB { // Make sure we've got a query-able member dictionary - buildMemberDictionary(aggTypeDecl); - SLANG_ASSERT(aggTypeDecl->isMemberDictionaryValid()); + auto& memberDict = aggTypeDecl->getMemberDictionary(); List<Decl*> uniqueMethods; - for (const auto& pair : aggTypeDecl->memberDictionary) + for (const auto& pair : memberDict) { CallableDecl* callableDecl = as<CallableDecl>(pair.Value); if (callableDecl && isVisible(callableDecl)) |
