mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #3194 from kseo/print-using-for
Print using for directive in ASTPrinter
This commit is contained in:
commit
f2e9dea5e7
@ -78,6 +78,13 @@ bool ASTPrinter::visit(InheritanceSpecifier const& _node)
|
|||||||
return goDeeper();
|
return goDeeper();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ASTPrinter::visit(UsingForDirective const& _node)
|
||||||
|
{
|
||||||
|
writeLine("UsingForDirective");
|
||||||
|
printSourcePart(_node);
|
||||||
|
return goDeeper();
|
||||||
|
}
|
||||||
|
|
||||||
bool ASTPrinter::visit(StructDefinition const& _node)
|
bool ASTPrinter::visit(StructDefinition const& _node)
|
||||||
{
|
{
|
||||||
writeLine("StructDefinition \"" + _node.name() + "\"");
|
writeLine("StructDefinition \"" + _node.name() + "\"");
|
||||||
@ -385,6 +392,11 @@ void ASTPrinter::endVisit(InheritanceSpecifier const&)
|
|||||||
m_indentation--;
|
m_indentation--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ASTPrinter::endVisit(UsingForDirective const&)
|
||||||
|
{
|
||||||
|
m_indentation--;
|
||||||
|
}
|
||||||
|
|
||||||
void ASTPrinter::endVisit(StructDefinition const&)
|
void ASTPrinter::endVisit(StructDefinition const&)
|
||||||
{
|
{
|
||||||
m_indentation--;
|
m_indentation--;
|
||||||
|
@ -51,6 +51,7 @@ public:
|
|||||||
bool visit(ImportDirective const& _node) override;
|
bool visit(ImportDirective const& _node) override;
|
||||||
bool visit(ContractDefinition const& _node) override;
|
bool visit(ContractDefinition const& _node) override;
|
||||||
bool visit(InheritanceSpecifier const& _node) override;
|
bool visit(InheritanceSpecifier const& _node) override;
|
||||||
|
bool visit(UsingForDirective const& _node) override;
|
||||||
bool visit(StructDefinition const& _node) override;
|
bool visit(StructDefinition const& _node) override;
|
||||||
bool visit(EnumDefinition const& _node) override;
|
bool visit(EnumDefinition const& _node) override;
|
||||||
bool visit(EnumValue const& _node) override;
|
bool visit(EnumValue const& _node) override;
|
||||||
@ -94,6 +95,7 @@ public:
|
|||||||
void endVisit(ImportDirective const&) override;
|
void endVisit(ImportDirective const&) override;
|
||||||
void endVisit(ContractDefinition const&) override;
|
void endVisit(ContractDefinition const&) override;
|
||||||
void endVisit(InheritanceSpecifier const&) override;
|
void endVisit(InheritanceSpecifier const&) override;
|
||||||
|
void endVisit(UsingForDirective const&) override;
|
||||||
void endVisit(StructDefinition const&) override;
|
void endVisit(StructDefinition const&) override;
|
||||||
void endVisit(EnumDefinition const&) override;
|
void endVisit(EnumDefinition const&) override;
|
||||||
void endVisit(EnumValue const&) override;
|
void endVisit(EnumValue const&) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user