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