mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Provide types for VariableDeclaration.
This commit is contained in:
@@ -105,6 +105,11 @@ bool ASTPrinter::visit(FunctionDefinition const& _node)
|
||||
bool ASTPrinter::visit(VariableDeclaration const& _node)
|
||||
{
|
||||
writeLine("VariableDeclaration \"" + _node.name() + "\"");
|
||||
*m_ostream << indentation() << (
|
||||
_node.annotation().type ?
|
||||
string(" Type: ") + _node.annotation().type->toString() :
|
||||
string(" Type unknown.")
|
||||
) << "\n";
|
||||
printSourcePart(_node);
|
||||
return goDeeper();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user