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

Fixed fixits on types with comptime-emitted code

This commit is contained in:
Brian Fiete 2022-02-02 08:00:55 -05:00
parent b8c7a29b84
commit 438394099a
2 changed files with 5 additions and 5 deletions

View file

@ -3268,7 +3268,7 @@ void BfAutoComplete::FixitAddMember(BfTypeInstance* typeInst, BfType* fieldType,
if (typeInst == mModule->mContext->mBfObjectType)
return;
auto parser = typeInst->mTypeDef->mSource->ToParser();
auto parser = typeInst->mTypeDef->GetDefinition()->mSource->ToParser();
if (parser == NULL)
return;
@ -3323,7 +3323,7 @@ void BfAutoComplete::FixitAddCase(BfTypeInstance* typeInst, const StringImpl& ca
if (typeInst == mModule->mContext->mBfObjectType)
return;
auto parser = typeInst->mTypeDef->mSource->ToParser();
auto parser = typeInst->mTypeDef->GetDefinition()->mSource->ToParser();
if (parser == NULL)
return;
@ -3562,7 +3562,7 @@ void BfAutoComplete::FixitAddMethod(BfTypeInstance* typeInst, const StringImpl&
if ((typeInst->mTypeDef->mSource != NULL) && (typeInst != mModule->mContext->mBfObjectType))
{
auto parser = typeInst->mTypeDef->mSource->ToParser();
auto parser = typeInst->mTypeDef->GetDefinition()->mSource->ToParser();
if (parser != NULL)
{
String fullName = typeInst->mTypeDef->mFullName.ToString();
@ -3643,7 +3643,7 @@ void BfAutoComplete::FixitCheckNamespace(BfTypeDef* activeTypeDef, BfAstNode* ty
void BfAutoComplete::FixitAddConstructor(BfTypeInstance *typeInstance)
{
auto baseType = typeInstance->mBaseType;
auto parser = typeInstance->mTypeDef->mSource->ToParser();
auto parser = typeInstance->mTypeDef->GetDefinition()->mSource->ToParser();
if (parser != NULL)
{
for (auto methodDef : baseType->mTypeDef->mMethods)