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:
parent
ed06ff4dce
commit
7691c414c3
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue