mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
UserDefinedValueType: from simple name to canonical name.
This commit is contained in:
@@ -341,6 +341,11 @@ Type const* UserDefinedValueTypeDefinition::type() const
|
||||
return TypeProvider::typeType(TypeProvider::userDefinedValueType(*this));
|
||||
}
|
||||
|
||||
TypeDeclarationAnnotation& UserDefinedValueTypeDefinition::annotation() const
|
||||
{
|
||||
return initAnnotation<TypeDeclarationAnnotation>();
|
||||
}
|
||||
|
||||
Type const* StructDefinition::type() const
|
||||
{
|
||||
solAssert(annotation().recursive.has_value(), "Requested struct type before DeclarationTypeChecker.");
|
||||
|
||||
@@ -750,6 +750,8 @@ public:
|
||||
|
||||
Type const* type() const override;
|
||||
|
||||
TypeDeclarationAnnotation& annotation() const override;
|
||||
|
||||
TypeName const* underlyingType() const { return m_underlyingType.get(); }
|
||||
bool isVisibleViaContractTypeAccess() const override { return true; }
|
||||
|
||||
|
||||
@@ -2555,7 +2555,7 @@ bool UserDefinedValueType::operator==(Type const& _other) const
|
||||
|
||||
string UserDefinedValueType::toString(bool /* _short */) const
|
||||
{
|
||||
return "user defined type " + definition().name();
|
||||
return "user defined type " + *definition().annotation().canonicalName;
|
||||
}
|
||||
|
||||
vector<tuple<string, Type const*>> UserDefinedValueType::makeStackItems() const
|
||||
|
||||
Reference in New Issue
Block a user