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