1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32: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

@ -571,7 +571,16 @@ bool BfContext::ProcessWorkList(bool onlyReifiedTypes, bool onlyReifiedMethods)
{
if (!mCompiler->mIsResolveOnly)
BF_ASSERT(!methodInstance->mIsReified || methodInstance->mDeclModule->mIsModuleMutable);
ProcessMethod(methodInstance);
auto autoComplete = mCompiler->GetAutoComplete();
if ((autoComplete != NULL) && (autoComplete->mModule == NULL))
{
autoComplete->mModule = methodInstance->mDeclModule;
ProcessMethod(methodInstance);
autoComplete->mModule = NULL;
}
else
ProcessMethod(methodInstance);
}
}