mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixit for expanding auto constructor
This commit is contained in:
parent
a23406d9dd
commit
b12ceeb625
9 changed files with 124 additions and 1 deletions
|
@ -8960,6 +8960,13 @@ BfAstNode* BfReducer::CreateTopLevelObject(BfTokenNode* tokenNode, BfAttributeDi
|
|||
MEMBER_SET(ctorDecl, mThisToken, tokenNode);
|
||||
ParseMethod(ctorDecl, ¶ms, &commas);
|
||||
|
||||
if (!baseClassCommas.IsEmpty())
|
||||
{
|
||||
ctorDecl->mPrefix = baseClassCommas.back();
|
||||
baseClassCommas.pop_back();
|
||||
ctorDecl->mSrcStart = ctorDecl->mPrefix->mSrcStart;
|
||||
}
|
||||
|
||||
if (typeDeclaration->mAutoCtor == NULL)
|
||||
{
|
||||
MEMBER_SET(typeDeclaration, mAutoCtor, ctorDecl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue