mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28: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,11 +8180,14 @@ void BfCompiler::GenerateAutocompleteInfo()
|
|||
|
||||
auto& bestInstance = methodMatchInfo->mInstanceList[methodMatchInfo->mBestIdx];
|
||||
auto bestMethodDef = bestInstance.mMethodDef;
|
||||
for (int paramIdx = 0; paramIdx < bestMethodDef->mParams.mSize; paramIdx++)
|
||||
if (bestMethodDef != NULL)
|
||||
{
|
||||
if ((paramIdx == 0) && (bestMethodDef->mMethodType == BfMethodType_Extension))
|
||||
continue;
|
||||
autoComplete->AddEntry(AutoCompleteEntry("param", bestMethodDef->mParams[paramIdx]->mName + ":"), filter);
|
||||
for (int paramIdx = 0; paramIdx < bestMethodDef->mParams.mSize; paramIdx++)
|
||||
{
|
||||
if ((paramIdx == 0) && (bestMethodDef->mMethodType == BfMethodType_Extension))
|
||||
continue;
|
||||
autoComplete->AddEntry(AutoCompleteEntry("param", bestMethodDef->mParams[paramIdx]->mName + ":"), filter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue