mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Refactoring: Check types outside of AST and recover from some errors.
This commit is contained in:
@@ -62,7 +62,7 @@ bool ASTPrinter::visit(ContractDefinition const& _node)
|
||||
|
||||
bool ASTPrinter::visit(InheritanceSpecifier const& _node)
|
||||
{
|
||||
writeLine("InheritanceSpecifier \"" + _node.name()->name() + "\"");
|
||||
writeLine("InheritanceSpecifier \"" + _node.name().name() + "\"");
|
||||
printSourcePart(_node);
|
||||
return goDeeper();
|
||||
}
|
||||
@@ -530,8 +530,8 @@ void ASTPrinter::printSourcePart(ASTNode const& _node)
|
||||
|
||||
void ASTPrinter::printType(Expression const& _expression)
|
||||
{
|
||||
if (_expression.type())
|
||||
*m_ostream << indentation() << " Type: " << _expression.type()->toString() << "\n";
|
||||
if (_expression.annotation().type)
|
||||
*m_ostream << indentation() << " Type: " << _expression.annotation().type->toString() << "\n";
|
||||
else
|
||||
*m_ostream << indentation() << " Type unknown.\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user