summaryrefslogtreecommitdiff
path: root/source/slang/slang-doc-markdown-writer.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-10-26 08:32:24 -0700
committerGitHub <noreply@github.com>2022-10-26 08:32:24 -0700
commit939be44ca23476e622dfb24a592383fe2a1da61f (patch)
tree7f45645897fe5735d58a7687290552d479e4d6fc /source/slang/slang-doc-markdown-writer.cpp
parent4fc34b18da2f83ee6b4f094067503a66cab3d0b5 (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.cpp10
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))