diff options
author | Christian <c@ethdev.com> | 2015-01-21 18:16:18 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-26 17:23:39 +0800 |
commit | 19793dab093ae36b5f2b4d1cabfbf54bed3125b1 (patch) | |
tree | 94070079e892a1681fa82a0d4a9db315ce152573 /ASTPrinter.cpp | |
parent | 570e49c03ab9e09d538218839696fc6159b0a2f1 (diff) | |
download | dexon-solidity-19793dab093ae36b5f2b4d1cabfbf54bed3125b1.tar dexon-solidity-19793dab093ae36b5f2b4d1cabfbf54bed3125b1.tar.gz dexon-solidity-19793dab093ae36b5f2b4d1cabfbf54bed3125b1.tar.bz2 dexon-solidity-19793dab093ae36b5f2b4d1cabfbf54bed3125b1.tar.lz dexon-solidity-19793dab093ae36b5f2b4d1cabfbf54bed3125b1.tar.xz dexon-solidity-19793dab093ae36b5f2b4d1cabfbf54bed3125b1.tar.zst dexon-solidity-19793dab093ae36b5f2b4d1cabfbf54bed3125b1.zip |
Function modifier parsing.
Diffstat (limited to 'ASTPrinter.cpp')
-rw-r--r-- | ASTPrinter.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ASTPrinter.cpp b/ASTPrinter.cpp index 916fca1e..86cd028a 100644 --- a/ASTPrinter.cpp +++ b/ASTPrinter.cpp @@ -87,6 +87,13 @@ bool ASTPrinter::visit(VariableDeclaration const& _node) return goDeeper(); } +bool ASTPrinter::visit(ModifierDefinition const& _node) +{ + writeLine("ModifierDefinition \"" + _node.getName() + "\""); + printSourcePart(_node); + return goDeeper(); +} + bool ASTPrinter::visit(TypeName const& _node) { writeLine("TypeName"); @@ -129,6 +136,13 @@ bool ASTPrinter::visit(Block const& _node) return goDeeper(); } +bool ASTPrinter::visit(PlaceholderStatement const& _node) +{ + writeLine("PlaceholderStatement"); + printSourcePart(_node); + return goDeeper(); +} + bool ASTPrinter::visit(IfStatement const& _node) { writeLine("IfStatement"); @@ -322,6 +336,11 @@ void ASTPrinter::endVisit(VariableDeclaration const&) m_indentation--; } +void ASTPrinter::endVisit(ModifierDefinition const&) +{ + m_indentation--; +} + void ASTPrinter::endVisit(TypeName const&) { m_indentation--; @@ -352,6 +371,11 @@ void ASTPrinter::endVisit(Block const&) m_indentation--; } +void ASTPrinter::endVisit(PlaceholderStatement const&) +{ + m_indentation--; +} + void ASTPrinter::endVisit(IfStatement const&) { m_indentation--; |