mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Named arguments
This commit is contained in:
parent
d204922403
commit
79320652e3
15 changed files with 341 additions and 37 deletions
|
@ -13,6 +13,12 @@ BfDeferEvalChecker::BfDeferEvalChecker()
|
|||
|
||||
void BfDeferEvalChecker::Check(BfAstNode* node)
|
||||
{
|
||||
if (auto namedNode = BfNodeDynCastExact<BfNamedExpression>(node))
|
||||
node = namedNode->mExpression;
|
||||
|
||||
if (node == NULL)
|
||||
return;
|
||||
|
||||
SetAndRestoreValue<BfAstNode*> rootNode(mRootNode, node);
|
||||
node->Accept(this);
|
||||
}
|
||||
|
@ -22,6 +28,11 @@ void BfDeferEvalChecker::Visit(BfAstNode* attribExpr)
|
|||
mNeedsDeferEval = false;
|
||||
}
|
||||
|
||||
void BfDeferEvalChecker::Visit(BfAttributedExpression* attributedExpr)
|
||||
{
|
||||
VisitChild(attributedExpr->mExpression);
|
||||
}
|
||||
|
||||
void BfDeferEvalChecker::Visit(BfInitializerExpression* collectionInitExpr)
|
||||
{
|
||||
VisitChild(collectionInitExpr->mTarget);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue