mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Improved CE TypeDeclaration handling, including proper rebuilding
This commit is contained in:
parent
25eb2a13a3
commit
5f4514211e
10 changed files with 266 additions and 38 deletions
|
@ -1459,7 +1459,7 @@ void BfContext::TypeDataChanged(BfDependedType* dType, bool isNonStaticDataChang
|
|||
if (dependencyFlags &
|
||||
(BfDependencyMap::DependencyFlag_ReadFields | BfDependencyMap::DependencyFlag_ParamOrReturnValue |
|
||||
BfDependencyMap::DependencyFlag_LocalUsage | BfDependencyMap::DependencyFlag_MethodGenericArg |
|
||||
BfDependencyMap::DependencyFlag_Allocates))
|
||||
BfDependencyMap::DependencyFlag_Allocates | BfDependencyMap::DependencyFlag_TypeSignature))
|
||||
{
|
||||
RebuildType(dependentType);
|
||||
}
|
||||
|
@ -2243,6 +2243,8 @@ void BfContext::UpdateRevisedTypes()
|
|||
|
||||
bool rebuildAllFilesChanged = mCompiler->mRebuildChangedFileSet.Contains("*");
|
||||
|
||||
uint64 projectDepHash = 0;
|
||||
|
||||
// Do primary 'rebuild' scan
|
||||
for (auto type : mResolvedTypes)
|
||||
{
|
||||
|
@ -2316,6 +2318,14 @@ void BfContext::UpdateRevisedTypes()
|
|||
changed = true;
|
||||
mCompiler->mRebuildFileSet.Add(kv.mKey.mString);
|
||||
}
|
||||
|
||||
if (kv.mKey.mKind == CeRebuildKey::Kind_TypeDeclListHash)
|
||||
{
|
||||
if (projectDepHash == 0)
|
||||
projectDepHash = mSystem->GetTypeDeclListHash();
|
||||
if (kv.mValue.mInt != projectDepHash)
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (changed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue