aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ASTJsonConverter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/ASTJsonConverter.cpp')
-rw-r--r--libsolidity/ASTJsonConverter.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/libsolidity/ASTJsonConverter.cpp b/libsolidity/ASTJsonConverter.cpp
index 3d119a4e..96e5cf2a 100644
--- a/libsolidity/ASTJsonConverter.cpp
+++ b/libsolidity/ASTJsonConverter.cpp
@@ -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();