diff options
author | LianaHus <liana@ethdev.com> | 2015-10-27 20:16:33 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-11-07 01:45:06 +0800 |
commit | 02d060ea5cc72ff9e9c4b5384073cc4103209cdb (patch) | |
tree | 8c5f36593d5c464181ddd99a15927478ee68e6d8 /libsolidity/analysis | |
parent | 1a27bf8a39309a1d777276e8a7c3514d80c01a5f (diff) | |
download | dexon-solidity-02d060ea5cc72ff9e9c4b5384073cc4103209cdb.tar.gz dexon-solidity-02d060ea5cc72ff9e9c4b5384073cc4103209cdb.tar.zst dexon-solidity-02d060ea5cc72ff9e9c4b5384073cc4103209cdb.zip |
fixed build
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r-- | libsolidity/analysis/NameAndTypeResolver.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libsolidity/analysis/NameAndTypeResolver.cpp b/libsolidity/analysis/NameAndTypeResolver.cpp index ca4e5e0f..83107358 100644 --- a/libsolidity/analysis/NameAndTypeResolver.cpp +++ b/libsolidity/analysis/NameAndTypeResolver.cpp @@ -97,19 +97,19 @@ bool NameAndTypeResolver::resolveNamesAndTypes(ContractDefinition& _contract) for (ASTPointer<ModifierDefinition> const& modifier: _contract.functionModifiers()) { m_currentScope = &m_scopes[modifier.get()]; - ReferencesResolver resolver(m_errors); + ReferencesResolver resolver(m_errors, *this, &_contract, nullptr); result = result && resolver.resolve(*modifier); } for (ASTPointer<FunctionDefinition> const& function: _contract.definedFunctions()) { m_currentScope = &m_scopes[function.get()]; ReferencesResolver referencesResolver( - m_errors; + m_errors, *this, &_contract, function->returnParameterList().get() ); - result = result && resolver.resolve(*function); + result = result && referencesResolver.resolve(*function); } m_currentScope = &m_scopes[&_contract]; @@ -125,6 +125,7 @@ bool NameAndTypeResolver::resolveNamesAndTypes(ContractDefinition& _contract) { m_currentScope = &m_scopes[function.get()]; ReferencesResolver referencesResolver( + m_errors, *this, &_contract, function->returnParameterList().get(), |