mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add ast json converter for EnumValue
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user