1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48: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; BfMethodDef* tempDefMethod = NULL;
for (auto checkMethod : tempTypeDef->mMethods) for (auto checkMethod : tempTypeDef->mMethods)
@ -4672,7 +4673,7 @@ void BfCompiler::AddToRebuildTypeList(BfTypeInstance* typeInst, HashSet<BfTypeIn
if (mResolvePassData->mParser != NULL) if (mResolvePassData->mParser != NULL)
{ {
// Only find references within the current file // Only find references within the current file
if (!typeInst->mTypeDef->HasSource(mResolvePassData->mParser)) if (!typeInst->mTypeDef->GetDefinition()->HasSource(mResolvePassData->mParser))
return; return;
} }

View file

@ -519,7 +519,7 @@ bool BfContext::ProcessWorkList(bool onlyReifiedTypes, bool onlyReifiedMethods)
auto owner = methodInstance->mMethodInstanceGroup->mOwner; auto owner = methodInstance->mMethodInstanceGroup->mOwner;
BF_ASSERT(!module->mAwaitingFinish); 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; continue;
} }