TypeProvider: storageType() to make all parameters explicit

This commit is contained in:
Christian Parpart 2019-04-15 17:28:32 +02:00 committed by chriseth
parent bf43eebea9
commit a2a3b007f3
3 changed files with 3 additions and 3 deletions

View File

@ -182,7 +182,7 @@ void ReferencesResolver::endVisit(UserDefinedTypeName const& _typeName)
_typeName.annotation().referencedDeclaration = declaration;
if (StructDefinition const* structDef = dynamic_cast<StructDefinition const*>(declaration))
_typeName.annotation().type = TypeProvider::structType(*structDef);
_typeName.annotation().type = TypeProvider::structType(*structDef, DataLocation::Storage);
else if (EnumDefinition const* enumDef = dynamic_cast<EnumDefinition const*>(declaration))
_typeName.annotation().type = TypeProvider::enumType(*enumDef);
else if (ContractDefinition const* contract = dynamic_cast<ContractDefinition const*>(declaration))

View File

@ -266,7 +266,7 @@ TypeNameAnnotation& TypeName::annotation() const
TypePointer StructDefinition::type() const
{
return TypeProvider::typeType(TypeProvider::structType(*this));
return TypeProvider::typeType(TypeProvider::structType(*this, DataLocation::Storage));
}
TypeDeclarationAnnotation& StructDefinition::annotation() const

View File

@ -173,7 +173,7 @@ public:
static TypeType const* typeType(Type const* _actualType);
static StructType const* structType(StructDefinition const& _struct, DataLocation _location = DataLocation::Storage);
static StructType const* structType(StructDefinition const& _struct, DataLocation _location);
static ModifierType const* modifierType(ModifierDefinition const& _modifierDef);