From 939be44ca23476e622dfb24a592383fe2a1da61f Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 26 Oct 2022 08:32:24 -0700 Subject: Auto synthesis of Differential type (#2466) --- source/slang/slang-doc-markdown-writer.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'source/slang/slang-doc-markdown-writer.cpp') 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 uniqueMethods; - for (const auto& pair : aggTypeDecl->memberDictionary) + for (const auto& pair : memberDict) { CallableDecl* callableDecl = as(pair.Value); if (callableDecl && isVisible(callableDecl)) -- cgit v1.2.3