Provide types for VariableDeclaration.

This commit is contained in:
chriseth
2015-09-24 12:12:36 +02:00
parent 1736fe8015
commit e81f4ba45e
3 changed files with 15 additions and 1 deletions
+5
View File
@@ -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();
}