mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1367 from asinyagin/develop
Print canonical names of structs and enums in AST
This commit is contained in:
commit
7884a69243
@ -1451,7 +1451,7 @@ u256 StructType::storageSize() const
|
||||
|
||||
string StructType::toString(bool _short) const
|
||||
{
|
||||
string ret = "struct " + m_struct.name();
|
||||
string ret = "struct " + m_struct.annotation().canonicalName;
|
||||
if (!_short)
|
||||
ret += " " + stringForReferencePart();
|
||||
return ret;
|
||||
@ -1570,7 +1570,7 @@ unsigned EnumType::storageBytes() const
|
||||
|
||||
string EnumType::toString(bool) const
|
||||
{
|
||||
return string("enum ") + m_enum.name();
|
||||
return string("enum ") + m_enum.annotation().canonicalName;
|
||||
}
|
||||
|
||||
string EnumType::canonicalName(bool) const
|
||||
|
Loading…
Reference in New Issue
Block a user