Add ast json converter for PlaceholderStatement

This commit is contained in:
Alex Sinyagin
2016-08-18 12:30:00 +00:00
parent e9c894c9f8
commit 406f3a4b5d
3 changed files with 26 additions and 0 deletions
+11
View File
@@ -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();