1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Made source index change cause internals rebuild

This commit is contained in:
Brian Fiete 2020-11-10 06:31:35 -08:00
parent e34dee7438
commit 22cc81862b

View file

@ -1399,6 +1399,12 @@ void BfDefBuilder::Visit(BfTypeDeclaration* typeDeclaration)
int hashPos[2] = { curLine, curColumn };
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))
{
HashNode(*mSignatureHashCtx, typeAliasDeclaration->mAliasToType);