From 22cc81862b4100db6f266481c709271878199eef Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 10 Nov 2020 06:31:35 -0800 Subject: [PATCH] Made source index change cause internals rebuild --- IDEHelper/Compiler/BfDefBuilder.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IDEHelper/Compiler/BfDefBuilder.cpp b/IDEHelper/Compiler/BfDefBuilder.cpp index 31b0dbfd..4c4bb937 100644 --- a/IDEHelper/Compiler/BfDefBuilder.cpp +++ b/IDEHelper/Compiler/BfDefBuilder.cpp @@ -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(typeDeclaration)) { HashNode(*mSignatureHashCtx, typeAliasDeclaration->mAliasToType);