diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-05-07 16:12:27 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-05-08 23:51:52 +0800 |
commit | 115c22c0e001fd0f9c440c45b33009bfe99697f8 (patch) | |
tree | c014363b1b8491a16f65b0a6c2a22cab4a8dc884 /AST.h | |
parent | 4fdfbaa3674a1597d1f192075700ac5951772193 (diff) | |
download | dexon-solidity-115c22c0e001fd0f9c440c45b33009bfe99697f8.tar.gz dexon-solidity-115c22c0e001fd0f9c440c45b33009bfe99697f8.tar.zst dexon-solidity-115c22c0e001fd0f9c440c45b33009bfe99697f8.zip |
changed the way of resolving declarations. now the cleanup of function duplications in libsolidity/NameAndTypeResolver.cpp(WIP)
Diffstat (limited to 'AST.h')
-rw-r--r-- | AST.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1217,10 +1217,10 @@ public: } Declaration const& getReferencedDeclaration() const; - /// Stores a set of possible declarations referenced by this identifier. Has to be resolved + /// Stores a possible declarations referenced by this identifier. Has to be resolved /// providing argument types using overloadResolution before the referenced declaration /// is accessed. - void setOverloadedDeclarations(std::set<Declaration const*> const& _declarations) + void setOverloadedDeclarations(std::vector<Declaration const*> const& _declarations) { m_overloadedDeclarations = _declarations; } @@ -1237,8 +1237,8 @@ private: /// Stores a reference to the current contract. This is needed because types of base contracts /// change depending on the context. ContractDefinition const* m_currentContract = nullptr; - /// A set of overloaded declarations, right now only FunctionDefinition has overloaded declarations. - std::set<Declaration const*> m_overloadedDeclarations; + /// A vector of overloaded declarations, right now only FunctionDefinition has overloaded declarations. + std::vector<Declaration const*> m_overloadedDeclarations; }; /** |