mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fixed append ctors in classes with emissions
This commit is contained in:
parent
f8f95e9de3
commit
86a80f4d18
1 changed files with 34 additions and 30 deletions
|
@ -2056,6 +2056,9 @@ void BfDefBuilder::FinishTypeDef(bool wantsToString)
|
||||||
{
|
{
|
||||||
mCurTypeDef->mHasAppendCtor = true;
|
mCurTypeDef->mHasAppendCtor = true;
|
||||||
|
|
||||||
|
bool isHandled = !method->mParams.IsEmpty() && method->mParams[0]->mParamKind == BfParamKind_AppendIdx;
|
||||||
|
if (!isHandled)
|
||||||
|
{
|
||||||
auto methodDef = new BfMethodDef();
|
auto methodDef = new BfMethodDef();
|
||||||
mCurTypeDef->mMethods.Insert(methodIdx + 1, methodDef);
|
mCurTypeDef->mMethods.Insert(methodIdx + 1, methodDef);
|
||||||
BF_ASSERT(mCurDeclaringTypeDef != NULL);
|
BF_ASSERT(mCurDeclaringTypeDef != NULL);
|
||||||
|
@ -2091,6 +2094,7 @@ void BfDefBuilder::FinishTypeDef(bool wantsToString)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (method->mMethodType == BfMethodType_CtorClear)
|
if (method->mMethodType == BfMethodType_CtorClear)
|
||||||
{
|
{
|
||||||
ctorClear = method;
|
ctorClear = method;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue