mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Added nameof
This commit is contained in:
parent
dd0d67cca1
commit
7dd2324fcf
13 changed files with 307 additions and 13 deletions
|
@ -519,6 +519,8 @@ void BfElementVisitor::Visit(BfTypeAttrExpression* typeAttrExpr)
|
|||
|
||||
void BfElementVisitor::Visit(BfOffsetOfExpression* offsetOfExpr)
|
||||
{
|
||||
Visit(offsetOfExpr->ToBase());
|
||||
|
||||
VisitChild(offsetOfExpr->mToken);
|
||||
VisitChild(offsetOfExpr->mOpenParen);
|
||||
VisitChild(offsetOfExpr->mTypeRef);
|
||||
|
@ -527,6 +529,16 @@ void BfElementVisitor::Visit(BfOffsetOfExpression* offsetOfExpr)
|
|||
VisitChild(offsetOfExpr->mCloseParen);
|
||||
}
|
||||
|
||||
void BfElementVisitor::Visit(BfNameOfExpression* nameOfExpr)
|
||||
{
|
||||
Visit(nameOfExpr->ToBase());
|
||||
|
||||
VisitChild(nameOfExpr->mToken);
|
||||
VisitChild(nameOfExpr->mOpenParen);
|
||||
VisitChild(nameOfExpr->mTarget);
|
||||
VisitChild(nameOfExpr->mCloseParen);
|
||||
}
|
||||
|
||||
void BfElementVisitor::Visit(BfDefaultExpression* defaultExpr)
|
||||
{
|
||||
Visit(defaultExpr->ToBase());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue