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

Fixed Go To Definition cases in generated code

This commit is contained in:
Brian Fiete 2022-04-25 14:41:03 -07:00
parent 4e5327e8b8
commit 100181b062
4 changed files with 36 additions and 9 deletions

View file

@ -4279,6 +4279,7 @@ void BfCompiler::ProcessAutocompleteTempType()
{
if ((autoComplete != NULL) && (autoComplete->mResolveType == BfResolveType_GoToDefinition))
{
autoComplete->SetModule(NULL);
for (auto& kv : mResolvePassData->mEmitEmbedEntries)
{
String typeName = kv.mKey;
@ -4296,6 +4297,7 @@ void BfCompiler::ProcessAutocompleteTempType()
}
DoWorkLoop();
autoComplete->SetModule(mContext->mScratchModule);
}
GenerateAutocompleteInfo();