AST import and export for revert statement.

This commit is contained in:
chriseth
2021-03-30 21:15:46 +02:00
parent fb67051467
commit b552e5aeeb
4 changed files with 21 additions and 0 deletions
+8
View File
@@ -675,6 +675,14 @@ bool ASTJsonConverter::visit(EmitStatement const& _node)
return false;
}
bool ASTJsonConverter::visit(RevertStatement const& _node)
{
setJsonNode(_node, "RevertStatement", {
make_pair("errorCall", toJson(_node.errorCall()))
});
return false;
}
bool ASTJsonConverter::visit(VariableDeclarationStatement const& _node)
{
Json::Value varDecs(Json::arrayValue);