mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add ast json converter for ModifierDefinition
This commit is contained in:
@@ -175,6 +175,12 @@ bool ASTJsonConverter::visit(VariableDeclaration const& _node)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ASTJsonConverter::visit(ModifierDefinition const& _node)
|
||||
{
|
||||
addJsonNode(_node, "ModifierDefinition", { make_pair("name", _node.name()) }, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ASTJsonConverter::visit(TypeName const&)
|
||||
{
|
||||
return true;
|
||||
@@ -409,6 +415,11 @@ void ASTJsonConverter::endVisit(VariableDeclaration const&)
|
||||
goUp();
|
||||
}
|
||||
|
||||
void ASTJsonConverter::endVisit(ModifierDefinition const&)
|
||||
{
|
||||
goUp();
|
||||
}
|
||||
|
||||
void ASTJsonConverter::endVisit(TypeName const&)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user