Add ast json converter for EnumValue

This commit is contained in:
Alex Sinyagin
2016-08-18 12:29:59 +00:00
parent a9e04217a4
commit 95832da16e
3 changed files with 30 additions and 0 deletions
+11
View File
@@ -144,6 +144,12 @@ bool ASTJsonConverter::visit(EnumDefinition const& _node)
return true;
}
bool ASTJsonConverter::visit(EnumValue const& _node)
{
addJsonNode(_node, "EnumValue", { make_pair("name", _node.name()) }, true);
return true;
}
bool ASTJsonConverter::visit(ParameterList const& _node)
{
addJsonNode(_node, "ParameterList", {}, true);
@@ -383,6 +389,11 @@ void ASTJsonConverter::endVisit(EnumDefinition const&)
goUp();
}
void ASTJsonConverter::endVisit(EnumValue const&)
{
goUp();
}
void ASTJsonConverter::endVisit(ParameterList const&)
{
goUp();