diff options
author | Christian <c@ethdev.com> | 2015-01-16 03:04:06 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-20 06:35:04 +0800 |
commit | 914fcedd0e2217300ee28f13bc4c006860f81a12 (patch) | |
tree | a0536dbf1e36ac7ce96ca68febda501915f9c973 /DeclarationContainer.h | |
parent | 4631e54e08184df7b6788f37b0ad2f808d1d73cc (diff) | |
download | dexon-solidity-914fcedd0e2217300ee28f13bc4c006860f81a12.tar dexon-solidity-914fcedd0e2217300ee28f13bc4c006860f81a12.tar.gz dexon-solidity-914fcedd0e2217300ee28f13bc4c006860f81a12.tar.bz2 dexon-solidity-914fcedd0e2217300ee28f13bc4c006860f81a12.tar.lz dexon-solidity-914fcedd0e2217300ee28f13bc4c006860f81a12.tar.xz dexon-solidity-914fcedd0e2217300ee28f13bc4c006860f81a12.tar.zst dexon-solidity-914fcedd0e2217300ee28f13bc4c006860f81a12.zip |
Import inherited members into the contract's scope.
Diffstat (limited to 'DeclarationContainer.h')
-rw-r--r-- | DeclarationContainer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/DeclarationContainer.h b/DeclarationContainer.h index c0a0b42c..e4b79325 100644 --- a/DeclarationContainer.h +++ b/DeclarationContainer.h @@ -42,11 +42,12 @@ public: explicit DeclarationContainer(Declaration const* _enclosingDeclaration = nullptr, DeclarationContainer const* _enclosingContainer = nullptr): m_enclosingDeclaration(_enclosingDeclaration), m_enclosingContainer(_enclosingContainer) {} - /// Registers the declaration in the scope unless its name is already declared. Returns true iff - /// it was not yet declared. + /// Registers the declaration in the scope unless its name is already declared. + /// @returns true iff it was not yet declared. bool registerDeclaration(Declaration const& _declaration, bool _update = false); Declaration const* resolveName(ASTString const& _name, bool _recursive = false) const; Declaration const* getEnclosingDeclaration() const { return m_enclosingDeclaration; } + std::map<ASTString, Declaration const*> const& getDeclarations() const { return m_declarations; } private: Declaration const* m_enclosingDeclaration; |