1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed documentation issues

This commit is contained in:
Brian Fiete 2020-10-21 09:56:22 -07:00
parent bf5e689029
commit 6a9cb287f8
2 changed files with 17 additions and 18 deletions

View file

@ -560,18 +560,13 @@ void BfAutoComplete::AddTypeDef(BfTypeDef* typeDef, const StringImpl& filter, bo
if (entryAdded != NULL)
{
if (CheckDocumentation(entryAdded, NULL))
if ((CheckDocumentation(entryAdded, NULL)) && (entryAdded->mDocumentation == NULL))
{
auto typeInst = mModule->ResolveTypeDef(typeDef, BfPopulateType_IdentityNoRemapAlias);
String str;
StringT<1024> str;
if (typeInst != NULL)
str = mModule->TypeToString(typeInst, BfTypeNameFlag_ExtendedInfo);
if (entryAdded->mDocumentation != NULL)
{
str += "\x04";
str.Append(entryAdded->mDocumentation);
}
else if (typeDef->mTypeDeclaration->mDocumentation != NULL)
if (typeDef->mTypeDeclaration->mDocumentation != NULL)
{
if (!str.IsEmpty())
str += "\x05";
@ -1263,7 +1258,7 @@ void BfAutoComplete::AddTopLevelTypes(BfAstNode* identifierNode, bool onlyAttrib
if (activeTypeDef != NULL)
{
BfProject* curProject = activeTypeDef->mProject;
if (mModule->mCurTypeInstance != NULL)
{
for (auto innerTypeDef : mModule->mCurTypeInstance->mTypeDef->mNestedTypes)