mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 14:54:09 +02:00
Made source index change cause internals rebuild
This commit is contained in:
parent
e34dee7438
commit
22cc81862b
1 changed files with 6 additions and 0 deletions
|
@ -1399,6 +1399,12 @@ void BfDefBuilder::Visit(BfTypeDeclaration* typeDeclaration)
|
||||||
int hashPos[2] = { curLine, curColumn };
|
int hashPos[2] = { curLine, curColumn };
|
||||||
mFullHashCtx->Mixin(hashPos);
|
mFullHashCtx->Mixin(hashPos);
|
||||||
|
|
||||||
|
if (mSystem->mIsResolveOnly)
|
||||||
|
{
|
||||||
|
// We need to have the correct source index for renames and such
|
||||||
|
fullHashCtx.Mixin(typeDeclaration->GetSrcStart());
|
||||||
|
}
|
||||||
|
|
||||||
if (auto typeAliasDeclaration = BfNodeDynCast<BfTypeAliasDeclaration>(typeDeclaration))
|
if (auto typeAliasDeclaration = BfNodeDynCast<BfTypeAliasDeclaration>(typeDeclaration))
|
||||||
{
|
{
|
||||||
HashNode(*mSignatureHashCtx, typeAliasDeclaration->mAliasToType);
|
HashNode(*mSignatureHashCtx, typeAliasDeclaration->mAliasToType);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue