aboutsummaryrefslogtreecommitdiffstats
path: root/DeclarationContainer.h
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-02-09 09:06:30 +0800
committerLiana Husikyan <liana@ethdev.com>2015-02-09 09:06:30 +0800
commit2a5c2578bd7e07326412ac0345ed5f5283908ccb (patch)
tree863e089d25f486125099417bcc8f963a034bf41f /DeclarationContainer.h
parenta66db516fb1025b406c8fcdb694b7fb760f84695 (diff)
downloaddexon-solidity-2a5c2578bd7e07326412ac0345ed5f5283908ccb.tar
dexon-solidity-2a5c2578bd7e07326412ac0345ed5f5283908ccb.tar.gz
dexon-solidity-2a5c2578bd7e07326412ac0345ed5f5283908ccb.tar.bz2
dexon-solidity-2a5c2578bd7e07326412ac0345ed5f5283908ccb.tar.lz
dexon-solidity-2a5c2578bd7e07326412ac0345ed5f5283908ccb.tar.xz
dexon-solidity-2a5c2578bd7e07326412ac0345ed5f5283908ccb.tar.zst
dexon-solidity-2a5c2578bd7e07326412ac0345ed5f5283908ccb.zip
- implemented Empty parameter name story. Now the name of input/return parameters of function can be not specified.
- added appropriate tests Conflicts: test/SolidityEndToEndTest.cpp test/SolidityNameAndTypeResolution.cpp
Diffstat (limited to 'DeclarationContainer.h')
-rw-r--r--DeclarationContainer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/DeclarationContainer.h b/DeclarationContainer.h
index e4b79325..1216fcef 100644
--- a/DeclarationContainer.h
+++ b/DeclarationContainer.h
@@ -42,8 +42,8 @@ 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 or the name is empty.
+ /// @returns false if the name was already 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; }