diff options
author | chriseth <chris@ethereum.org> | 2016-11-15 02:55:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-15 02:55:35 +0800 |
commit | 7884a6924380495969a8e7da4e5ae579020434f0 (patch) | |
tree | 3dc1b2a5fdd757310533f5d1d9c35bcda5df6bcf /libsolidity | |
parent | 07e4cd6e3230d42d974f2b3a1688f74f0b9fe8e2 (diff) | |
parent | 6db9fd498ac707828e63518c07ed5543efe22fd4 (diff) | |
download | dexon-solidity-7884a6924380495969a8e7da4e5ae579020434f0.tar.gz dexon-solidity-7884a6924380495969a8e7da4e5ae579020434f0.tar.zst dexon-solidity-7884a6924380495969a8e7da4e5ae579020434f0.zip |
Merge pull request #1367 from asinyagin/develop
Print canonical names of structs and enums in AST
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/ast/Types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index f0995393..6ad74d28 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -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 |