mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fixed ctor passthrough generation for AllowAppend
This commit is contained in:
parent
45d6a12d5d
commit
7548bf23cd
1 changed files with 11 additions and 2 deletions
|
@ -2505,6 +2505,9 @@ bool BfAutoComplete::GetMethodInfo(BfMethodInstance* methodInst, StringImpl* sho
|
||||||
|
|
||||||
auto methodDeclaration = methodDef->GetMethodDeclaration();
|
auto methodDeclaration = methodDef->GetMethodDeclaration();
|
||||||
|
|
||||||
|
if (methodDef->mHasAppend)
|
||||||
|
methodPrefix += "[AllowAppend]\r";
|
||||||
|
|
||||||
if (isInterface)
|
if (isInterface)
|
||||||
{
|
{
|
||||||
if (!isExplicitInterface)
|
if (!isExplicitInterface)
|
||||||
|
@ -2548,10 +2551,15 @@ bool BfAutoComplete::GetMethodInfo(BfMethodInstance* methodInst, StringImpl* sho
|
||||||
methodName += ">";
|
methodName += ">";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int usedParamIdx = 0;
|
||||||
|
|
||||||
methodName += "(";
|
methodName += "(";
|
||||||
for (int paramIdx = 0; paramIdx < (int)methodInst->GetParamCount(); paramIdx++)
|
for (int paramIdx = 0; paramIdx < (int)methodInst->GetParamCount(); paramIdx++)
|
||||||
{
|
{
|
||||||
if (paramIdx > 0)
|
if (methodInst->GetParamKind(paramIdx) == BfParamKind_AppendIdx)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (usedParamIdx > 0)
|
||||||
{
|
{
|
||||||
methodName += ", ";
|
methodName += ", ";
|
||||||
if (!isAbstract)
|
if (!isAbstract)
|
||||||
|
@ -2589,6 +2597,7 @@ bool BfAutoComplete::GetMethodInfo(BfMethodInstance* methodInst, StringImpl* sho
|
||||||
|
|
||||||
impString += methodDef->mParams[paramIdx]->mName;
|
impString += methodDef->mParams[paramIdx]->mName;
|
||||||
}
|
}
|
||||||
|
usedParamIdx++;
|
||||||
}
|
}
|
||||||
methodName += ")";
|
methodName += ")";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue