Do not add children to EnumValue and PlaceholderStatement elements in JSON AST

This commit is contained in:
Alex Sinyagin 2016-08-18 13:29:44 +00:00
parent 9139d763d3
commit 4387d8bbe3

View File

@ -152,7 +152,7 @@ bool ASTJsonConverter::visit(EnumDefinition const& _node)
bool ASTJsonConverter::visit(EnumValue const& _node) bool ASTJsonConverter::visit(EnumValue const& _node)
{ {
addJsonNode(_node, "EnumValue", { make_pair("name", _node.name()) }, true); addJsonNode(_node, "EnumValue", { make_pair("name", _node.name()) });
return true; return true;
} }
@ -244,7 +244,7 @@ bool ASTJsonConverter::visit(Block const& _node)
bool ASTJsonConverter::visit(PlaceholderStatement const& _node) bool ASTJsonConverter::visit(PlaceholderStatement const& _node)
{ {
addJsonNode(_node, "PlaceholderStatement", {}, true); addJsonNode(_node, "PlaceholderStatement", {});
return true; return true;
} }
@ -432,7 +432,6 @@ void ASTJsonConverter::endVisit(EnumDefinition const&)
void ASTJsonConverter::endVisit(EnumValue const&) void ASTJsonConverter::endVisit(EnumValue const&)
{ {
goUp();
} }
void ASTJsonConverter::endVisit(ParameterList const&) void ASTJsonConverter::endVisit(ParameterList const&)
@ -499,7 +498,6 @@ void ASTJsonConverter::endVisit(Block const&)
void ASTJsonConverter::endVisit(PlaceholderStatement const&) void ASTJsonConverter::endVisit(PlaceholderStatement const&)
{ {
goUp();
} }
void ASTJsonConverter::endVisit(IfStatement const&) void ASTJsonConverter::endVisit(IfStatement const&)