mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added AST node UserDefinedValueType
This commit is contained in:
@@ -335,6 +335,12 @@ TypeNameAnnotation& TypeName::annotation() const
|
||||
return initAnnotation<TypeNameAnnotation>();
|
||||
}
|
||||
|
||||
Type const* UserDefinedValueTypeDefinition::type() const
|
||||
{
|
||||
solAssert(m_underlyingType->annotation().type, "");
|
||||
return TypeProvider::typeType(TypeProvider::userDefinedValueType(*this));
|
||||
}
|
||||
|
||||
Type const* StructDefinition::type() const
|
||||
{
|
||||
solAssert(annotation().recursive.has_value(), "Requested struct type before DeclarationTypeChecker.");
|
||||
|
||||
Reference in New Issue
Block a user