Added AST node UserDefinedValueType

This commit is contained in:
hrkrshnn
2021-09-07 19:42:51 +02:00
parent 6feed460cf
commit d3ae9cf71b
5 changed files with 62 additions and 0 deletions
+6
View File
@@ -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.");