mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make members context-sensitive.
This commit is contained in:
1 parent
c498dcce22
commit
86495dfc57
14 files changed
+71
-79
No files matched your search
@@ -50,7 +50,6 @@ bool ReferencesResolver::visit(UserDefinedTypeName const& _typeName)
|
||||
|
||||
_typeName.annotation().referencedDeclaration = declaration;
|
||||
|
||||
_typeName.annotation().contractScope = m_currentContract;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -73,10 +72,7 @@ bool ReferencesResolver::visit(Identifier const& _identifier)
|
||||
if (declarations.empty())
|
||||
fatalDeclarationError(_identifier.location(), "Undeclared identifier.");
|
||||
else if (declarations.size() == 1)
|
||||
{
|
||||
_identifier.annotation().referencedDeclaration = declarations.front();
|
||||
_identifier.annotation().contractScope = m_currentContract;
|
||||
}
|
||||
else
|
||||
_identifier.annotation().overloadedDeclarations =
|
||||
m_resolver.cleanedDeclarations(_identifier, declarations);
|
||||
|
||||
Reference in new issue
Block a user