diff options
| author | Yong He <yonghe@outlook.com> | 2022-10-26 08:32:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-26 08:32:24 -0700 |
| commit | 939be44ca23476e622dfb24a592383fe2a1da61f (patch) | |
| tree | 7f45645897fe5735d58a7687290552d479e4d6fc /source/slang/slang-doc-markdown-writer.cpp | |
| parent | 4fc34b18da2f83ee6b4f094067503a66cab3d0b5 (diff) | |
Auto synthesis of Differential type (#2466)
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)) |
