diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-10 20:40:21 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-14 06:16:14 +0800 |
commit | 86e1d671cc4ed9b89576c80e16e58a8019115068 (patch) | |
tree | cc0feacef2294265c96dea27e5810b442f107323 /AST_accept.h | |
parent | a295417f3476428c286f96433a42a96bfe29fee3 (diff) | |
download | dexon-solidity-86e1d671cc4ed9b89576c80e16e58a8019115068.tar.gz dexon-solidity-86e1d671cc4ed9b89576c80e16e58a8019115068.tar.zst dexon-solidity-86e1d671cc4ed9b89576c80e16e58a8019115068.zip |
Parsing an enum AST node
Diffstat (limited to 'AST_accept.h')
-rw-r--r-- | AST_accept.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/AST_accept.h b/AST_accept.h index 15f6b7ee..9568da5b 100644 --- a/AST_accept.h +++ b/AST_accept.h @@ -105,22 +105,36 @@ void InheritanceSpecifier::accept(ASTConstVisitor& _visitor) const _visitor.endVisit(*this); } -void StructDefinition::accept(ASTVisitor& _visitor) +void EnumDefinition::accept(ASTVisitor& _visitor) { if (_visitor.visit(*this)) listAccept(m_members, _visitor); _visitor.endVisit(*this); } -void EnumDefinition::accept(ASTVisitor& _visitor) +void EnumDefinition::accept(ASTConstVisitor& _visitor) const { - _visitor.visit(*this) + if (_visitor.visit(*this)) + listAccept(m_members, _visitor); _visitor.endVisit(*this); } -void EnumDefinition::accept(ASTConstVisitor& _visitor) const +void EnumDeclaration::accept(ASTVisitor& _visitor) +{ + _visitor.visit(*this); + _visitor.endVisit(*this); +} + +void EnumDeclaration::accept(ASTConstVisitor& _visitor) const +{ + _visitor.visit(*this); + _visitor.endVisit(*this); +} + +void StructDefinition::accept(ASTVisitor& _visitor) { - _visitor.visit(*this) + if (_visitor.visit(*this)) + listAccept(m_members, _visitor); _visitor.endVisit(*this); } |