diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-05-08 22:07:25 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-05-08 23:51:53 +0800 |
commit | 5c1c690e286e4086eb60ef392b816c536e7b1839 (patch) | |
tree | 719712fe3e716c5d2ca56d6b9f3be1e4c5402b09 /NameAndTypeResolver.h | |
parent | e7568b5f4d7b07f5b36890852abce7d1b51f9124 (diff) | |
download | dexon-solidity-5c1c690e286e4086eb60ef392b816c536e7b1839.tar.gz dexon-solidity-5c1c690e286e4086eb60ef392b816c536e7b1839.tar.zst dexon-solidity-5c1c690e286e4086eb60ef392b816c536e7b1839.zip |
style changes
Diffstat (limited to 'NameAndTypeResolver.h')
-rw-r--r-- | NameAndTypeResolver.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/NameAndTypeResolver.h b/NameAndTypeResolver.h index 7855217a..d7a0a3b2 100644 --- a/NameAndTypeResolver.h +++ b/NameAndTypeResolver.h @@ -56,13 +56,17 @@ public: /// Resolves the given @a _name inside the scope @a _scope. If @a _scope is omitted, /// the global scope is used (i.e. the one containing only the contract). /// @returns a pointer to the declaration on success or nullptr on failure. - std::vector<const Declaration *> resolveName(ASTString const& _name, Declaration const* _scope = nullptr) const; + std::vector<Declaration const*> resolveName(ASTString const& _name, Declaration const* _scope = nullptr) const; /// Resolves a name in the "current" scope. Should only be called during the initial /// resolving phase. std::vector<Declaration const*> getNameFromCurrentScope(ASTString const& _name, bool _recursive = true); - std::vector<Declaration const*> cleanupedDeclarations(Identifier const& _identifier, std::vector<Declaration const*> const& _declarations); + /// returns the vector of declarations without repetitions + static std::vector<Declaration const*> cleanedDeclarations( + Identifier const& _identifier, + std::vector<Declaration const*> const& _declarations + ); private: void reset(); |