mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[cond-expr] add visitor related functions
This commit is contained in:
@@ -248,6 +248,14 @@ bool ASTPrinter::visit(ExpressionStatement const& _node)
|
||||
return goDeeper();
|
||||
}
|
||||
|
||||
bool ASTPrinter::visit(Conditional const& _node)
|
||||
{
|
||||
writeLine("Conditional");
|
||||
printType(_node);
|
||||
printSourcePart(_node);
|
||||
return goDeeper();
|
||||
}
|
||||
|
||||
bool ASTPrinter::visit(Assignment const& _node)
|
||||
{
|
||||
writeLine(string("Assignment using operator ") + Token::toString(_node.assignmentOperator()));
|
||||
@@ -480,6 +488,11 @@ void ASTPrinter::endVisit(ExpressionStatement const&)
|
||||
m_indentation--;
|
||||
}
|
||||
|
||||
void ASTPrinter::endVisit(Conditional const&)
|
||||
{
|
||||
m_indentation--;
|
||||
}
|
||||
|
||||
void ASTPrinter::endVisit(Assignment const&)
|
||||
{
|
||||
m_indentation--;
|
||||
|
||||
Reference in New Issue
Block a user