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

Autocomplete method name fix

This commit is contained in:
Brian Fiete 2020-10-08 11:47:38 -07:00
parent 3fb7576bf9
commit e8b35ce0c4
2 changed files with 3 additions and 2 deletions

View file

@ -1523,7 +1523,8 @@ void BfAutoComplete::CheckIdentifier(BfAstNode* identifierNode, bool isInExpress
{ {
for (auto localMethod : checkMethodState->mLocalMethods) for (auto localMethod : checkMethodState->mLocalMethods)
{ {
AddMethod(mModule->mCurTypeInstance, localMethod->mMethodDef, localMethod->mMethodInstanceGroup->mDefault, localMethod->mMethodDeclaration, localMethod->mMethodName, filter); if (localMethod->mMethodInstanceGroup != NULL)
AddMethod(mModule->mCurTypeInstance, localMethod->mMethodDef, localMethod->mMethodInstanceGroup->mDefault, localMethod->mMethodDeclaration, localMethod->mMethodName, filter);
} }
checkMethodState = checkMethodState->mPrevMethodState; checkMethodState = checkMethodState->mPrevMethodState;
} }

View file

@ -9863,7 +9863,7 @@ StringT<128> BfModule::MethodToString(BfMethodInstance* methodInst, BfMethodName
if ((methodNameFlags & BfMethodNameFlag_OmitTypeName) == 0) if ((methodNameFlags & BfMethodNameFlag_OmitTypeName) == 0)
{ {
methodName = TypeToString(type, typeNameFlags); methodName += TypeToString(type, typeNameFlags);
if (methodName == "$") if (methodName == "$")
methodName = ""; methodName = "";
else if (!methodName.IsEmpty()) else if (!methodName.IsEmpty())