mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Tuple expressions.
This commit is contained in:
@@ -559,6 +559,24 @@ void Assignment::accept(ASTConstVisitor& _visitor) const
|
||||
_visitor.endVisit(*this);
|
||||
}
|
||||
|
||||
void TupleExpression::accept(ASTVisitor& _visitor)
|
||||
{
|
||||
if (_visitor.visit(*this))
|
||||
for (auto const& component: m_components)
|
||||
if (component)
|
||||
component->accept(_visitor);
|
||||
_visitor.endVisit(*this);
|
||||
}
|
||||
|
||||
void TupleExpression::accept(ASTConstVisitor& _visitor) const
|
||||
{
|
||||
if (_visitor.visit(*this))
|
||||
for (auto const& component: m_components)
|
||||
if (component)
|
||||
component->accept(_visitor);
|
||||
_visitor.endVisit(*this);
|
||||
}
|
||||
|
||||
void UnaryOperation::accept(ASTVisitor& _visitor)
|
||||
{
|
||||
if (_visitor.visit(*this))
|
||||
|
||||
Reference in New Issue
Block a user