mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
throw statement implementation
This commit is contained in:
@@ -193,6 +193,12 @@ bool ASTJsonConverter::visit(Return const&)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ASTJsonConverter::visit(Throw const&)
|
||||
{
|
||||
addJsonNode("Throw", {}, true);;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ASTJsonConverter::visit(VariableDeclarationStatement const&)
|
||||
{
|
||||
addJsonNode("VariableDefinition", {}, true);
|
||||
@@ -364,6 +370,11 @@ void ASTJsonConverter::endVisit(Return const&)
|
||||
goUp();
|
||||
}
|
||||
|
||||
void ASTJsonConverter::endVisit(Throw const&)
|
||||
{
|
||||
goUp();
|
||||
}
|
||||
|
||||
void ASTJsonConverter::endVisit(VariableDeclarationStatement const&)
|
||||
{
|
||||
goUp();
|
||||
|
||||
Reference in New Issue
Block a user