mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed defer target printing
This commit is contained in:
parent
a3ed5b7769
commit
d460c1fb2f
2 changed files with 3 additions and 1 deletions
|
@ -1847,7 +1847,7 @@ void BfPrinter::Visit(BfDeferStatement* deferStmt)
|
|||
|
||||
VisitChild(deferStmt->mDeferToken);
|
||||
VisitChild(deferStmt->mColonToken);
|
||||
VisitChild(deferStmt->mScopeToken);
|
||||
VisitChild(deferStmt->mScopeName);
|
||||
|
||||
if (deferStmt->mBind != NULL)
|
||||
{
|
||||
|
|
|
@ -3797,6 +3797,8 @@ BfAstNode* BfReducer::DoCreateStatement(BfAstNode* node, CreateStmtFlags createS
|
|||
}
|
||||
else if (nextTokenNode->GetToken() == BfToken_LParen)
|
||||
{
|
||||
mPassInstance->Warn(0, "Syntax deprecated", nextTokenNode);
|
||||
|
||||
MEMBER_SET(deferStmt, mOpenParen, nextTokenNode);
|
||||
mVisitorPos.MoveNext();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue