diff options
author | Christian <c@ethdev.com> | 2015-01-20 04:05:47 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-20 06:35:04 +0800 |
commit | af92f98d86ba1e15e3f41ac49bb9639be1ab4e41 (patch) | |
tree | e42cff46c9701491a43e58bebd8ead5b3e5241ec /AST_accept.h | |
parent | 6e111d5d1da2a0ae397fa2bd846d13132cdd6dd9 (diff) | |
download | dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.tar dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.tar.gz dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.tar.bz2 dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.tar.lz dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.tar.xz dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.tar.zst dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.zip |
Constructor arguments for base classes.
Diffstat (limited to 'AST_accept.h')
-rw-r--r-- | AST_accept.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/AST_accept.h b/AST_accept.h index 7f3db85a..b77cfe1c 100644 --- a/AST_accept.h +++ b/AST_accept.h @@ -61,6 +61,7 @@ void ContractDefinition::accept(ASTVisitor& _visitor) { if (_visitor.visit(*this)) { + listAccept(m_baseContracts, _visitor); listAccept(m_definedStructs, _visitor); listAccept(m_stateVariables, _visitor); listAccept(m_definedFunctions, _visitor); @@ -72,6 +73,7 @@ void ContractDefinition::accept(ASTConstVisitor& _visitor) const { if (_visitor.visit(*this)) { + listAccept(m_baseContracts, _visitor); listAccept(m_definedStructs, _visitor); listAccept(m_stateVariables, _visitor); listAccept(m_definedFunctions, _visitor); @@ -79,6 +81,26 @@ void ContractDefinition::accept(ASTConstVisitor& _visitor) const _visitor.endVisit(*this); } +void InheritanceSpecifier::accept(ASTVisitor& _visitor) +{ + if (_visitor.visit(*this)) + { + m_baseName->accept(_visitor); + listAccept(m_arguments, _visitor); + } + _visitor.endVisit(*this); +} + +void InheritanceSpecifier::accept(ASTConstVisitor& _visitor) const +{ + if (_visitor.visit(*this)) + { + m_baseName->accept(_visitor); + listAccept(m_arguments, _visitor); + } + _visitor.endVisit(*this); +} + void StructDefinition::accept(ASTVisitor& _visitor) { if (_visitor.visit(*this)) |