1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Fixed symbol hiliting with comptime emissions

This commit is contained in:
Brian Fiete 2021-11-28 10:59:25 -08:00
parent ed06ff4dce
commit 7691c414c3
2 changed files with 4 additions and 3 deletions

View file

@ -4579,7 +4579,8 @@ void BfCompiler::ProcessAutocompleteTempType()
}
}
if ((mResolvePassData->mAutoComplete->mDefType == actualTypeDef) && (mResolvePassData->mAutoComplete->mDefMethod != NULL))
if ((mResolvePassData->mAutoComplete->mDefType != NULL) && (mResolvePassData->mAutoComplete->mDefType->GetDefinition() == actualTypeDef) &&
(mResolvePassData->mAutoComplete->mDefMethod != NULL))
{
BfMethodDef* tempDefMethod = NULL;
for (auto checkMethod : tempTypeDef->mMethods)
@ -4672,7 +4673,7 @@ void BfCompiler::AddToRebuildTypeList(BfTypeInstance* typeInst, HashSet<BfTypeIn
if (mResolvePassData->mParser != NULL)
{
// Only find references within the current file
if (!typeInst->mTypeDef->HasSource(mResolvePassData->mParser))
if (!typeInst->mTypeDef->GetDefinition()->HasSource(mResolvePassData->mParser))
return;
}