2
0
Эх сурвалжийг харах

Autocomplete method name fix

Brian Fiete 5 жил өмнө
parent
commit
e8b35ce0c4

+ 2 - 1
IDEHelper/Compiler/BfAutoComplete.cpp

@@ -1523,7 +1523,8 @@ void BfAutoComplete::CheckIdentifier(BfAstNode* identifierNode, bool isInExpress
 	{ 
 		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;
 	}

+ 1 - 1
IDEHelper/Compiler/BfModule.cpp

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