aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/ASTJsonConverter.cpp
diff options
context:
space:
mode:
authorAlex Sinyagin <sinyagin.alexander@gmail.com>2016-08-17 23:20:17 +0800
committerAlex Sinyagin <sinyagin.alexander@gmail.com>2016-08-18 20:30:00 +0800
commit406f3a4b5d3827f09e5f1035b79627dcc0e907d9 (patch)
tree0a77440fc171dcfb69fb7de94bef08f019bf1af3 /libsolidity/ast/ASTJsonConverter.cpp
parente9c894c9f80b4a30560c1b88614cbd767abd908b (diff)
downloaddexon-solidity-406f3a4b5d3827f09e5f1035b79627dcc0e907d9.tar.gz
dexon-solidity-406f3a4b5d3827f09e5f1035b79627dcc0e907d9.tar.zst
dexon-solidity-406f3a4b5d3827f09e5f1035b79627dcc0e907d9.zip
Add ast json converter for PlaceholderStatement
Diffstat (limited to 'libsolidity/ast/ASTJsonConverter.cpp')
-rw-r--r--libsolidity/ast/ASTJsonConverter.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp
index e839a8ca..fc5ad498 100644
--- a/libsolidity/ast/ASTJsonConverter.cpp
+++ b/libsolidity/ast/ASTJsonConverter.cpp
@@ -236,6 +236,12 @@ bool ASTJsonConverter::visit(Block const& _node)
return true;
}
+bool ASTJsonConverter::visit(PlaceholderStatement const& _node)
+{
+ addJsonNode(_node, "Placeholder", {}, true);
+ return true;
+}
+
bool ASTJsonConverter::visit(IfStatement const& _node)
{
addJsonNode(_node, "IfStatement", {}, true);
@@ -480,6 +486,11 @@ void ASTJsonConverter::endVisit(Block const&)
goUp();
}
+void ASTJsonConverter::endVisit(PlaceholderStatement const&)
+{
+ goUp();
+}
+
void ASTJsonConverter::endVisit(IfStatement const&)
{
goUp();