Remove isDeclaredConst() from functions

This commit is contained in:
Alex Beregszaszi committed 2017-08-16 17:23:09 +01:00
1 parent 33ea314a24
commit 7700f4033e
3 files changed
+3 -5

No files matched your search

+1 -1
View File
@@ -105,7 +105,7 @@ bool ASTPrinter::visit(FunctionDefinition const& _node)
{
writeLine("FunctionDefinition \"" + _node.name() + "\"" +
(_node.isPublic() ? " - public" : "") +
(_node.isDeclaredConst() ? " - const" : ""));
(_node.stateMutability() == StateMutability::View ? " - const" : ""));
printSourcePart(_node);
return goDeeper();
}