diff options
author | Alex Sinyagin <sinyagin.alexander@gmail.com> | 2016-11-14 21:39:46 +0800 |
---|---|---|
committer | Alex Sinyagin <sinyagin.alexander@gmail.com> | 2016-11-14 21:39:46 +0800 |
commit | 6db9fd498ac707828e63518c07ed5543efe22fd4 (patch) | |
tree | be4b199e043ba2f5e49ebbedf00848eae3682a55 /libsolidity | |
parent | 68e776338701f6140d0e58470c503fabc35bc5dc (diff) | |
download | dexon-solidity-6db9fd498ac707828e63518c07ed5543efe22fd4.tar dexon-solidity-6db9fd498ac707828e63518c07ed5543efe22fd4.tar.gz dexon-solidity-6db9fd498ac707828e63518c07ed5543efe22fd4.tar.bz2 dexon-solidity-6db9fd498ac707828e63518c07ed5543efe22fd4.tar.lz dexon-solidity-6db9fd498ac707828e63518c07ed5543efe22fd4.tar.xz dexon-solidity-6db9fd498ac707828e63518c07ed5543efe22fd4.tar.zst dexon-solidity-6db9fd498ac707828e63518c07ed5543efe22fd4.zip |
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 |