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

New function/delegate casting rules, similar to tuple rules

This commit is contained in:
Brian Fiete 2020-03-31 07:46:01 -07:00
parent c62dbdf811
commit de6a68911a
8 changed files with 143 additions and 32 deletions

View file

@ -7024,6 +7024,7 @@ void BfCompiler::GenerateAutocompleteInfo()
int dispParamIdx = 0;
StringT<64> paramName;
for (int paramIdx = 0; paramIdx < (int)methodInstance->GetParamCount(); paramIdx++)
{
auto paramKind = methodInstance->GetParamKind(paramIdx);
@ -7083,8 +7084,12 @@ void BfCompiler::GenerateAutocompleteInfo()
}
else
methodText += bfModule->TypeToString(type, BfTypeNameFlag_ResolveGenericParamNames, genericMethodNameOverridesPtr);
methodText += " ";
methodText += methodInstance->GetParamName(paramIdx);
methodInstance->GetParamName(paramIdx, paramName);
if (!paramName.IsEmpty())
{
methodText += " ";
methodText += paramName;
}
if (paramInitializer != NULL)
{