Remove isDeclaredConst() from functions

This commit is contained in:
Alex Beregszaszi
2017-08-16 17:23:09 +01:00
parent 33ea314a24
commit 7700f4033e
3 changed files with 3 additions and 5 deletions
+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();
}