aboutsummaryrefslogtreecommitdiffstats
path: root/ASTPrinter.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-28 18:28:22 +0800
committerChristian <c@ethdev.com>2015-01-28 18:28:22 +0800
commit34d07fc5837745ee3c8fbc571d0e2f0d02041cf1 (patch)
tree4160955c9664c0cc8f60cc621ebae5e9c4466f94 /ASTPrinter.cpp
parent5d3e21fd937940721c6c693c39d1fdc79e1f27c6 (diff)
downloaddexon-solidity-34d07fc5837745ee3c8fbc571d0e2f0d02041cf1.tar.gz
dexon-solidity-34d07fc5837745ee3c8fbc571d0e2f0d02041cf1.tar.zst
dexon-solidity-34d07fc5837745ee3c8fbc571d0e2f0d02041cf1.zip
Some fixes in parser.
Diffstat (limited to 'ASTPrinter.cpp')
-rw-r--r--ASTPrinter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/ASTPrinter.cpp b/ASTPrinter.cpp
index 85bc8825..05b24c63 100644
--- a/ASTPrinter.cpp
+++ b/ASTPrinter.cpp
@@ -57,6 +57,13 @@ bool ASTPrinter::visit(ContractDefinition const& _node)
return goDeeper();
}
+bool ASTPrinter::visit(InheritanceSpecifier const& _node)
+{
+ writeLine("InheritanceSpecifier \"" + _node.getName()->getName() + "\"");
+ printSourcePart(_node);
+ return goDeeper();
+}
+
bool ASTPrinter::visit(StructDefinition const& _node)
{
writeLine("StructDefinition \"" + _node.getName() + "\"");
@@ -323,6 +330,11 @@ void ASTPrinter::endVisit(ContractDefinition const&)
m_indentation--;
}
+void ASTPrinter::endVisit(InheritanceSpecifier const&)
+{
+ m_indentation--;
+}
+
void ASTPrinter::endVisit(StructDefinition const&)
{
m_indentation--;