mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed named param autocomplete crash
This commit is contained in:
parent
03c56b42c9
commit
5490af4690
1 changed files with 7 additions and 4 deletions
|
@ -8180,6 +8180,8 @@ void BfCompiler::GenerateAutocompleteInfo()
|
||||||
|
|
||||||
auto& bestInstance = methodMatchInfo->mInstanceList[methodMatchInfo->mBestIdx];
|
auto& bestInstance = methodMatchInfo->mInstanceList[methodMatchInfo->mBestIdx];
|
||||||
auto bestMethodDef = bestInstance.mMethodDef;
|
auto bestMethodDef = bestInstance.mMethodDef;
|
||||||
|
if (bestMethodDef != NULL)
|
||||||
|
{
|
||||||
for (int paramIdx = 0; paramIdx < bestMethodDef->mParams.mSize; paramIdx++)
|
for (int paramIdx = 0; paramIdx < bestMethodDef->mParams.mSize; paramIdx++)
|
||||||
{
|
{
|
||||||
if ((paramIdx == 0) && (bestMethodDef->mMethodType == BfMethodType_Extension))
|
if ((paramIdx == 0) && (bestMethodDef->mMethodType == BfMethodType_Extension))
|
||||||
|
@ -8187,6 +8189,7 @@ void BfCompiler::GenerateAutocompleteInfo()
|
||||||
autoComplete->AddEntry(AutoCompleteEntry("param", bestMethodDef->mParams[paramIdx]->mName + ":"), filter);
|
autoComplete->AddEntry(AutoCompleteEntry("param", bestMethodDef->mParams[paramIdx]->mName + ":"), filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
String invokeInfoText;
|
String invokeInfoText;
|
||||||
invokeInfoText += StrFormat("%d", methodMatchInfo->mBestIdx);
|
invokeInfoText += StrFormat("%d", methodMatchInfo->mBestIdx);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue