aboutsummaryrefslogtreecommitdiffstats
path: root/ASTPrinter.cpp
diff options
context:
space:
mode:
authorGav Wood <g@ethdev.com>2015-01-30 07:44:42 +0800
committerGav Wood <g@ethdev.com>2015-01-30 07:44:42 +0800
commitdc6f9e3ac0370835b6db8136ba39ea7100ae93a1 (patch)
tree6b8c569ec7377da58425fe00b1ed6548f46855fb /ASTPrinter.cpp
parenta604202f33f1f7dc3abda1080e1bc02b2a2cbcb3 (diff)
parent8d5ee59ee5bd14ab31a6b6c10015df3334b6b641 (diff)
downloaddexon-solidity-dc6f9e3ac0370835b6db8136ba39ea7100ae93a1.tar.gz
dexon-solidity-dc6f9e3ac0370835b6db8136ba39ea7100ae93a1.tar.zst
dexon-solidity-dc6f9e3ac0370835b6db8136ba39ea7100ae93a1.zip
Merge pull request #893 from chriseth/sol_events
Events in Solidity
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 05b24c63..949740e8 100644
--- a/ASTPrinter.cpp
+++ b/ASTPrinter.cpp
@@ -108,6 +108,13 @@ bool ASTPrinter::visit(ModifierInvocation const& _node)
return goDeeper();
}
+bool ASTPrinter::visit(EventDefinition const& _node)
+{
+ writeLine("EventDefinition \"" + _node.getName() + "\"");
+ printSourcePart(_node);
+ return goDeeper();
+}
+
bool ASTPrinter::visit(TypeName const& _node)
{
writeLine("TypeName");
@@ -365,6 +372,11 @@ void ASTPrinter::endVisit(ModifierInvocation const&)
m_indentation--;
}
+void ASTPrinter::endVisit(EventDefinition const&)
+{
+ m_indentation--;
+}
+
void ASTPrinter::endVisit(TypeName const&)
{
m_indentation--;