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

Fixed dependency adding of interfaces

This commit is contained in:
Brian Fiete 2020-05-29 10:11:09 -07:00
parent c101eb19dd
commit c8055f0a38
3 changed files with 9 additions and 33 deletions

View file

@ -1428,12 +1428,6 @@ void BfContext::DeleteType(BfType* type, bool deferDepRebuilds)
BfTypeInstance* typeInst = type->ToTypeInstance();
if (typeInst != NULL)
{
// if (typeInst->mTypeDef->IsGlobalsContainer())
// {
// bool worked = mSystem->mGlobalsMap.Remove(typeInst->mTypeDef->mNamespace);
// BF_ASSERT(worked);
// }
if (mCompiler->mHotState != NULL)
{
if ((typeInst->mHotTypeData != NULL) && (typeInst->mHotTypeData->mPendingDataChange))
@ -1540,11 +1534,6 @@ void BfContext::DeleteType(BfType* type, bool deferDepRebuilds)
mFailTypes.Add(dependentTypeInst);
else
{
// BfTypeProcessRequest* typeProcessRequest = mPopulateTypeWorkList.Alloc();
// typeProcessRequest->mType = dependentType;
// typeProcessRequest->mRebuildType = true;
// mCompiler->mStats.mTypesQueued++;
// mCompiler->UpdateCompletion();
rebuildTypeQueue.Add(dependentType);
}
}
@ -2109,7 +2098,9 @@ void BfContext::VerifyTypeLookups(BfTypeInstance* typeInst)
BfTypeDef* ambiguousTypeDef = NULL;
BfTypeDef* result = mSystem->FindTypeDef(lookupEntry.mName, lookupEntry.mNumGenericParams, useTypeDef->mProject, useTypeDef->mNamespaceSearch, &ambiguousTypeDef);
if (result != lookupEntryPair.mValue.mTypeDef)
{
isDirty = true;
}
else
lookupEntry.mAtomUpdateIdx = atomUpdateIdx;
}