mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Properly set scope.
This commit is contained in:
parent
b5a08f8641
commit
2d9479b06c
@ -130,9 +130,12 @@ bool NameAndTypeResolver::resolveNamesAndTypes(SourceUnit& _source)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
for (shared_ptr<ASTNode> const& node: _source.nodes())
|
for (shared_ptr<ASTNode> const& node: _source.nodes())
|
||||||
|
{
|
||||||
|
setScope(&_source);
|
||||||
if (!resolveNamesAndTypesInternal(*node, true))
|
if (!resolveNamesAndTypesInternal(*node, true))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (langutil::FatalError const&)
|
catch (langutil::FatalError const&)
|
||||||
{
|
{
|
||||||
if (m_errorReporter.errors().empty())
|
if (m_errorReporter.errors().empty())
|
||||||
|
Loading…
Reference in New Issue
Block a user