mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32: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;
|
||||
}
|
||||
|
||||
|
|
|
@ -519,7 +519,7 @@ bool BfContext::ProcessWorkList(bool onlyReifiedTypes, bool onlyReifiedMethods)
|
|||
auto owner = methodInstance->mMethodInstanceGroup->mOwner;
|
||||
|
||||
BF_ASSERT(!module->mAwaitingFinish);
|
||||
if ((resolveParser != NULL) && (methodInstance->mMethodDef->mDeclaringType != NULL) && (methodInstance->mMethodDef->mDeclaringType->mSource != resolveParser))
|
||||
if ((resolveParser != NULL) && (methodInstance->mMethodDef->mDeclaringType != NULL) && (methodInstance->mMethodDef->mDeclaringType->GetDefinition()->mSource != resolveParser))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue